RehabRob
best error message ever - I remember seeing that once myself long time ago
I bet whoever coded that is no longer with the company
That would be correct - Ron hooked that up back in the day :)
Its a catch all generic error that happens when something low in the stack encounters a problem and returns a failure code, but by the time the error handler gets it its so far removed from the source that the direct error cause was not known. This is a very common software engineering problem. In a debug build we get a ton more logging that would normally pinpoint these sorts of problems more accurately, but this data is not present in retail builds for efficiency.
I realize this is frustrating but if this happens often, you need to submit either a recipe or a project file that this can be reproduced with. These sorts of problems are most often caused either by failures due to plugins or some obscure state management issue. The fact that it works the second time reinforces this. I suspect if you played the project once before the export it would probably work as well.