can you check if by any chance you are running out of memory or disk space?
It looks like one of those errors where it tried to write X bytes, but could only write bytes less than X due to some unknown constraints.