This kind of errors are difficult to solve.
In my experience they are due to problems with the "central" files of the game, for example descr_model_battle or export_descr_units.
I usually get an old version and I try to modify it in the same way but step by step.
Sorry, but I cannot be of more help.
Bookmarks