Use FLV instead of MP4 if you don't want to risk corruption.
Technically if you run out of space, it can't write the required MP4 data to actually save the rest of the file to prevent corruption. It's difficult to really work with. I would recommend getting a bigger hard drive or freeing up some space or something.