Claustrophobia is a good thing...it keeps you from doing stupid stuff.
I would venture that acrophobia (fear of heights) accomplishes the same thing.
Fortunately I suffer from both, which is probably why I made it into my 60s.