I am glad that your story worked out as it did.
For others who might be coming across it, let me provide my story, which pans out very differently.
I was recently diagnosed with CPTSD (but it took a long time for doctors to reach that conclusion), although the anxiety was known for a long time.
Here's how it began: I was close to the end of a prestigious university program (3 years done out of 4) when I "snapped". I suddenly ran out of energy. I could no longer bring myself to care to go to class, and I found great comfort in running away from things. This was the beginning of what would eventually become deeply ingrained avoidant behaviour.
My ambition no longer matched up with the energy I had in my body. It no longer matched up with my ability to tolerate things. I could no longer live up to my ambitions, my dreams, my desires, my goals.
I broke, and I was suicidal for a long time (on and off for 10 years).
I am slowly working my way out of my issues now. I am learning how to deal with deep seated anxiety as a way to give me more energy so that I can achieve my goals. One of my doctors mentioned something crucial: anxiety saps energy. Having an overactive amygdala is harmful, because when you are having a panic attack, your body floods with energy (in order to execute "fight or flight"), but very briefly. The cost of this flood of energy is a massive drop in energy that lasts longer than the flood did. This is a possible explantion (amongst others) behind my perpetual low energy.
For me, part of the process of dealing with anxiety (amongst others, like mindfulness and self-kindness) is learning how to achieve my ambitions by making realistic goals, and learning how to feel pleasure in "small", consistent achievements (the depressed brain is excellent at making every achievement seem worthless). Feeling pleasure in these small achievements is important in order to fuel the necessary consistency of said achievements.
tl;dr: in my experience, anxiety is unlikely to be a driver of achievement, and therefore unlikely to be a cause of productive ambition.