where are you 'generating' the program? In CAPS or Esprit or something else?
FILE_MEMORY_OVER suggests you are lacking free memory. Try deleting some
old programs in the memory, either on the NC side or the CAPS/Esprit side.