Is there a maximum number of units allowed in AGE

Hey, i’m creating some new civs via the all techs method first outlined in the Tamils mod. I’ve run into an issue where the game crashes once certain civs hit castle age. My intuition is telling me that this is because that is when some of my hidden make available techs are enabled, and I have now gone over the cap for the number of units the AGE editor can handle.
Does anyone know what the exact number of units allowed in AGE is, to confirm my hypothesis?