Welcome miukot01
Hi. that is not how to treat Agoraphobia. That is side stepping. You are treating it like it is not there or to be avoided.
That just leaves it to get you some time later.
Accept it is there. Accept the trigger and accept that it is you that is giving it control. Take back control. All actions and thoughts have a negative or positive view. They are only triggers, and as harmless as you make them. Or!!!!! as harmful. Can you see this. It is not the trigger you need to change with the distraction although at first that is a necessary part of coping, but to take it past that point, to make your reaction null. There are common thought words we use that are similar but their meaning although similar cause different reactions. The most common ones associated with Agoraphobia are. "have to" and "want to". It is such a little thing with so much power.
If you "have to" then the action or situation has power till it is over and even if you block it with distractions it still has control. Yet if you "want to" then it just becomes something you are doing and no matter the outcome you are in control. At first you may still need the distraction because you are conditioned so but this will fade as you realize you can be in control if you "want to be". Two problems with this. You have to really want to. And be assertive about it, and you have to really believe. It can't work if you keep overriding it with thoughts of "have to".
If it is a personality problem you have to work on it, learning to be more assertive starting with yourself. After all it is you that has lost the "control" and is letting it happen.
Agoraphobia is not a fear of open places, that is a symptom. It is a fear of not having control. Fainting is a way of side stepping the situation rather than deal with it. This can be fixed with practice starting with an "i want to" mantra that not only works as a distraction but as a positive reinforcement. As far as I know it is the only cure for agoraphobia other than medication which dulls the "have to" reaction. (and leaves it open to next time). As for why you have agoraphobia, the reasons are numerous and you will have to figure that out.
Davit