I have an anxiety disorder and I keep having this. Eye pain and headache, how can treat this headache?

Migraine. Anxiety with migraine causing headache and eye pain.Need evaluation by yuor p.C.P.May need prophylactic medicine to prevent headache, rescue medications to treat headaches.
See an eye doctor. The first step is to see an eye doctor to rule out and eye etiology to your problem. From there you may also need to see your pcp to talk about headache control.