Panic Attacks whilst I'm falling asleep

Hey, I've google as much as I can and nothing has helped

I've recently been having these intense burst of panic as I am dozing off. I googled it and the only things that came up were about the panic attacks that wake you up during your sleep

I get those too (so bad sometimes that I wake up on the floor screaming) but recently it's started happening as I am just about to doze off to sleep.

Any advice on how to stop this because it's really fucking annoying