There is a memory leak that is caused by there being no limit to the hazards that show up when a stage goes on for too long. For context, the game takes approximately 2700MB of RAM when in a facility menu. Before my game eventually slowed to a crawl (as I was out of RAM at that point), I saw its RAM usage go up to around 12800MB when this happened. There were so many of these hazards that it looked like the floor was on fire.
And also it is possible for not enough enemies to spawn before the hazards start coming out. The flying arms enemies were the only enemy spawning on that stage and it was the stage with four walls with a corner to the east and pipes to the SW from spawn. This was the only time I ran into this issue, but it was pretty frustrating. Perhaps increasing spawn rates when there is only one enemy type spawning might mitigate that? This was on Complex difficulty if that matters.
Edit: I have run into both of the above issues again so it isn't a one off occurrence. Took place on a different stage. Was the flying arms enemies again. Needed to kill 300, only 220 spawned before hazards appeared. Got to 285 only because the map had effectively no walls and I could shoot enemies the moment they spawned.