The panic/anxiety is really hard going when I go to bed, so I really feel for you.
There is a book called
"The Promise of Sleep" by William Dement. I struggle with sleep as well - going to sleep, staying a sleep, getting enough sleep - so I have used multiple strategies over the decades.
Having a picture that I focus on when I wake up.
Making sure it is a comfortable bed situation.
Doing something soothing or calming throughout the day and then just before sleep.
Having a regular going to bed time.
Having a regular wake up time.
Don't have screen time before sleeping (not doing that one lately).
I have slept with ice packs on the back of my neck.
Reading a good book whilst in bed.
Doing a guided a meditation before bed. There's some free ones here
Self-Compassion Exercises by Dr. Kristin Neff and
Instant Mindfulness
I had "The Mindful Way Through Depression" audiobook on for months, and it really helped me ground that I was safe.
Radical Acceptance around your poor sleep has assisted me.
I still do a bit of comfort eating before sleep, not the best, but at least I don't binge eat anymore.
An evening sleep routine - which I have not mastered yet.
David Burn's book
"Feeling Good". Distorted thinking is one to get a handle on.
I do exercise throughout the day.
I try not to eat sugar in the evening. Also no caffeine.
I have lots of pillows as I suffer from chronic pain. So I do The Alexander Technique and I have worked out a system of body length pillows to support my leg and hip, which means I don't have as much pain at night, and much less pain in the morning.
It is a lot of trial and error.
For a while I had digital clock and I found it comforting to wake up and see that.
I also have used lots of comedians in the background. There are certain voices that I found very comforting.
Now I am using different American news anchors, and the voices that work for me mean I fall a sleep again.
I have periods of using sleeping tables 2-3 nights per week or Valium a few nights per week. But be careful addiction is an issue with these drugs. So I try to use sparingly.
Some or none of this might be useful to you. I have to constantly adjust and change what I am doing.