This is quite a simple bug. There's a trap where when you enter the cube it blocks every exit but one single exit. Apparently, it is possible for two cubes with that trap to be next to each other and share the same open exit. In other words, I was stuck in those two cubes with no options but to kill myself