One possible fix could be having an invisible object that randomly warps around when it's time to spawn an enemy until it's far enough from the player, and then spawning the enemy on the object's position.