corrupted file system

I am downloading a program to a PIC controller using RobotC and I get the following message in the message log. The file is a very small file only 22 total lines of code.

10605.888 Corrupted file system directory
Slot 0: Program size (21583 / 0x544F) too big

I also will loose the Rx1 light after a while and I have to download firmware again for it to come back on.