Limits to Compiling?

When I compiled with Scrivener Format it compiled the whole thing. When I did my customer format, it failed. I don’t understand how it could compile correctly with 50 chapters, and then the last be wrong.