If you get panicked when you are in enclosed spaces, then you can try therapy techniques like cognitive behavioral therapy and Interoceptive exposure.