Oh wow, you shouldn't have died. There was logic that would kill you if 400* or more enemies existed, but I changed it to stop enemy spawns at a cap instead. Maybe I didn't actually fix it entirely, thanks for pointing that out.
Edit: I found the line; there is logic that kills you at 400 enemies in this demo.