Spawn according to the situation
Do you spawn a bunch of the same units with the plan to swarm the enemy? Go ahead and stop doing that. Your troops should be there to support you! If you're moving into a piglin base, you're army should be primarily Cobblestone golems accompanied supporting units like mossy golems, and golems. if you're defending a village, you should be using things like plank, mossy, and grindstone golems.