Prioritize finishing the mission over killing enemies
If you just keep on taking enemies down, they’re going to keep respawning, and dragging a battle out for too long can lead to your heroes getting seriously hurt. Finish the objective, they stop respawning, and the battle can end.