I am 31 year old female working in tech industry. I have been dealing with stress and anxiety which started in grad school and has only gotten worse since then. It started with an incident with my advisor in grad school. I have been on and off on medicine and therapy but haven't been able to get control on it. In my current job which I joined two years ago, I had been doing well (even got promoted within a year), I started getting stressed out and having panic attacks before any meeting where I had to present my work or give updates. Slowly, I stopped having interest in my work.  
After a lot of thinking, I decided to apply for another job with better work life balance and start afresh. I interviewed at got a job at my dream company and a big jump in my compensation. I felt so happy.   
I am yet to inform my company as I need to go through immigration work before switching. So I need to continue working. I thought with this new job news I will feel more confident and less stressed but as soon as I get back to my work at my current company, I feel the same anxiety and stress.   
I keep thinking if I don't have updates or I don't get good results from my experiments, what will others think. I didn't get work done this week, what will my team think. And this just becomes like a circle, makes me anxious and I can't focus.  
I don't know what to do. My husband says, i won't be able to do well at the new job if this continues.

I feel like I am a failure that I can't control my feelings and thoughts. I don't know what to do.