Constant respawn happens when the game thinks something is stuck where it shouldn't be. The enemies spawn where they can dislodge it (otherwise you can't solve the puzzles). It may have been fixed by moving away and let them do their thing, but it may just be a mistake as well