That's too indeterminate an error for someone to just tell you what it is.
We've had a couple of these issues pop up in the course of developing SGI and SOA2. You can try the eclipse plugin and see if that catches them for you, otherwise start digging through assets you've changed. Start with ones that are loaded by maps. Pirates, resources, planets.
I'd guess it's the pirate names, you probably screwed up an index value on one of them. If there's a bad number in there, or if there are just too many of them and it has a cow whenever it tries to read above a certain number, that would explain your frequent, but inconsistent error. Not every name would be used every instance.