Git LFS Error

I often get git process error when commiting with git lfs turned on.

Git LFS Error - Image 1

Not sure what caused this, but generally I solve it by deleting index and index.lock, then performing "git reset"