maybe you have made an really big map/the map has really a lot of actors or something along these lines.
or it could be a problem with the map .bmp file(like being out of palette or something similar to this).
OR it can be a faulty .lua file for the scene messing around with cortex command somehow.
try to first
A)read this
tutorial just to make sure than you know all there is when it comes to missions.
B)check the .bmp files to see if they are in palete/copy paste them in a preexisting map to make sure it is in palete.
C)use a simpler .lua file than you know it works/do not use a .lua file at all,if this works it means you have messed up with the file somehow.
also upload the mission if you want to let us see it