It sounds like you have collapsonyaphobia.
If you are in a earthquake risk area, why not make some supports in your house to stop rubble from crushing you. for starters you could make a sort of cage to suround your bed with an escape route through the window or something.
You would not like where I live. there are caves everywhere. I spent quite a few years in the local rescue service and we handled cave rescues. I have had to get through tight spaces like you describe where something in your pocket is enough to catch and stop you. As soon as you start to panic, you will be stuck, so try learning how to calm youself down from an anxiety attack. Start with books on stress and anxiety, then move onto a councilor or therapist if you need to.
When I was in this situation, the pulse was high and the adrenalin was flowing, but my major fears were either finding a Wombat living in the hole I was moving through and getting attacked or getting flooded out which was a real threat in some areas.
Start by getting help with anxiety.