Amxiety is a physical response. It comes from a part of your brain called the limbic system which is responsible for keeping us safe/alive. So when the limbic system fires,you have an overwhelming urge to Flee, Fight or Freeze as these responses maximise survival. Trouble is your limbic system is going off when it doesn't need to. When we are terrified in terrifying situations, we don't call it an 'anxiety attack' - the definition of an anxiety attack is the body's alarm signals goig off when there is little real danger. So the job you need to do is to re-programme your limbic system. Luckily that can be done quite easily as the limbic system is adaptable. If you jump at a snake then see it's a stick, anxiety goes away very quickly as the limbic system switches the danger signal off.
The key to re=programming your brain is to make sure you do not escape from the situation before your anxiety has gone down. If you are scared and are still scared when you get off, all you teach your brain is that the only way to feel better is to get away from the 'danger'. But what you need to do it to train your brain to see that there is no/little danger.
I suggest you write a hierarchy - as many steps as necessary. Starting with something that does not make you anxious and then something that does a bit but not too much etc.
Eg:
Stand next to the horse
Sit on stationary horse on lead rein.
Sit on stationary horse off lead rein with partner next to horse
Sit on stationary horse off lead rein with partner nearby
Sit on stationary horse off lead rein with partner out of reach
Sit on stationary horse on lead rein and walk round arena
Etc
For each step rate your anxiety 0-10 where 0 is no anxiety, 10 is flat out panic.
Do NOTHING apart from stay with the step you are on (eg sit on horse on lead rein) and re-rate your anxiety every minute. It WILL come down. Do NOT get off or move to the next step until your anxiety has dropped to no more than 2 or 3. Repeat each step several times, until the anxiety does not go above 2 or 3 in the first place at that step.
Good luck and let us know how you get on.