Are you under the care of Mental Health midwives? Also, are you seeing anyone to help with your anxiety?
I am similar, 28 weeks, with anxiety and insomnia, but was already regularly seeing a therapist and so mental health midwife is more of an extra for me (they would have referred me for counselling if I wasn’t already getting help privately).
I’m on Amitriptaline to help with my sleep, again it predates pregnancy and they said they’d rather I keep taking it than not sleep and become more anxious. (It generally helps get me some sleep most nights which is a lot better than before).
I really would recommend you urgently request to see GP and midwives- whoever can get you help sooner. Definitely get signed off work until you are more stable, if you’re working.
A couple of things I’ve been told before that have helped me- firstly that resting, eg being laid down with eyes closed breathing slowly, while not as good as sleep, is better than being up panicking. There’s a thing called radical acceptance, where you accept things you can’t control- so sometimes I have to “accept” it’s a bad night and try to make the best of it by at least resting and focusing on staying calm.
Similarly, I’ve been told that I’ve got through days after not sleeping the night before, so again- remember it is not the end of the world (the panic is exhausting and upsetting).
Also, I’ve been told by medical professionals that the baby will be fine and I can’t think what examples they’ve given me but the gist is that women have been in absolutely diabolical situations and given birth to healthy happy babies, so try not to overly focus on that.
That said, I have also gone to my hospital more often than most as I do get anxious about the baby/reduced movements/other symptoms- but the midwives have always been lovely and told me it’s better to go in and be checked out than to be at home worrying. I hope you feel you can do the same at your hospital?
I hope you have a supportive partner and that you can try to get proper support from gp/midwives as soon as possible.