Make sure you have a single blank line between your components.
If you accidentally squished two component together you are liable to get that kind of error.
On the other hand, if you put two blank lines in a row, it will be considered the end of file. Handy for debugging, but bad if you don't realize you did it.
Try this for a quick solution:
http://imagemodserver.mine.nu/other/...RepairTool.zip
I wrote it to handle the 50-megabyte components files I was generating with the Tech Gridder, so it will handle small files in the blink of an eye