Schwere Angstzustände seit Beginn eines neuen Jobs mit Schlaflosigkeit und Depression

I am currently changing jobs and leaving my old job after 5 years, I’m used to the environment but there have been restructuring so I decided to pursue other opportunities outside my current city. I got an offer and accepted but now I am having a second opinion, my girlfriend and friends are currently in the same city and I will have to move to another city, since two weeks I have trouble sleeping and extreme anxiety. I am scared of working in a different job which I feel is a downgrade in skills as compared to my current company. I am getting sleepless nights and mood swings thinking about bad situations and won’t be able to come back to this company plus i get social anxiety if i miss something in my new job , feel really terrible