A common way is to just say "while the player is stuck in a solid object, move the player up (or some other direction) until they're not". Bit of a lazy band-aid fix, but it'll do the trick :P
Ahaha that's exactly what I ended up thinking about after a walk with my dog; considering the layout of the only room it can happen in, that's a pretty solid solution :)