Hey, I'm sorry for your condition but I want to let you know that it's okay and you're not alone. I had struggled with severe depression and anxiety disorder (which I still have) approximately 5 years ago. I also taken myself off flying. But at some point, I recognized that it couldn't be like that anymore and that I had to stop it. I identified my goals and passion in life. It triggered me to push forward and I turned back to flying.
It's all in your head. You should define what life is all about and what's your point of being in it. Then you should set your goals and your infinite passion. Be confident. Be ready for the changes and accept challenges. If your passion is flying, then nothing should stop you. Good luck.