Figwit is right. You can't do anything to prevent this kind of file corruption, as long as you aren't running any mods that change the program of the game. It's a very good idea to keep multiple save files so that you have something to go back to if it happens again. And, yes, large file games do start getting buggy. It's just the nature of the game.