Sorry to hear that! You can indeed go back to the previous room. There is a button to do so on the top-right.
As for the random death after restarting, it is a bug that I am not sure how to fix. Restarting the level fixes the issue so there is no need to worry about it.