It's really easy to get stuck behind doors and a level restart is required. There were two times in my playthrough where this happened.
If a door opens towards you and you're too close, it can get you stuck behind the door and unable to get out if there is scenery next to the door. I can understand that being able to close doors might be a way to cheese the combat, but if so doors shouldn't open towards you near scenery that gets you stuck.
Great game by the way, I'm new to the Godot engine and it is really fun to work with.