Claustrophobia is the fear of confined spaces, but if I understood you correctly you perhaps mean something different. I'm not sure being "stuck in your mind" can strictly speaking be referred to as claustrophobia, I could be wrong. I sometimes feel stuck with anxiety, brain fog and fatigue, but I never developed a fear of those feeling, it sort of became the new norm over the years.