At the very top of your main function or whatever function is used to load the level of your game, BEFORE the level_load instruction, insert max_entities = . . .;
Or, go to map properties and increase the nexus; the default max_entities is nexus * 10.