Unfortunately, it is impossible to exceed the unit limit. Some modifications got around this by creating separate campaigns for several factions, so that in one campaign they could allocate more units to this faction, and another to that faction, but the file can only contain 300 or so units.

How many units are there in your file? Because it does seem you exceeded a hardcoded limit.