I (hopefully) fixed the issue with spawning out of bounds.
The path to the last boss is going all the way right from the start, then going up when you can't go right anymore.
Sadly, I still encountered the out-of-bounds bug.I had a thought that maybe it was too crowded in the room, so I killed all the enemies first before recreating the bug; still ended up out-of-bounds.