Phobias like other anxiety-based issues come from something not threatening to life and limb being perceived as a huge threat. This is what triggers the central nervous system and our fight or flight so violently.
Psychoeducation around phobias as well as understanding the underlying triggers that start them are crucial steps in terms of fighting off these debilitating and disorientating experiences. Your good therapist will be able to help you fight these attacks.
Knowing how your own phobias feel, as well as working with someone trained in working with exposing you to the gentle stimulus of one will help you greatly to normalize the feared stimulus. Phobias are things that can become less severe over time.