I've seen this multiple times. The main reason they get corrupt has
been because the disk gets full. The robot doesn't handle full disk
very well (because space management when it comes to file handling is
a brand new topic that noone has handled before ).
I've also noticed a couple times that robot.cfg and/or controller.cfg
randomly becomes empty (without disk running full). I've never been
able to identify the cause in those situations.