I’ve had similar experiences and had to build a covered fighting area Infront of the main gate to stop the archers from killing all my guards. It’s fine if the base spawns further away, but when it appears at point-blank, the purge camp guards can really ruin your day.