Cook Failed problem

I’ve been having problems exporting the game recently. I get a Cook Failed message and when I open the output log I see that there are problems with the levels in the game. How to fix it?