Sleep disturbances making me insane

Hi all. I'm still awaiting an official diagnosis (rheumatologist appointment set for October), but I am very much hypermobile and extremely symptomatic. I suffer from frequent migraines and daily tension headaches, joint subluxations and body pains. The only thing that helps me is strength training, and to do that successfully you really need to rest at night. Which I so so so don't. 🥲

Since coming off anti-anxiety medication a few months ago, I noticed an increase in sleep disturbances (though I haven't slept through the night in years). I am generally a restless sleeper - I flip and flop like a pancake all night long because my neck, shoulders, hips and knees are so uncomfortable (despite a mountain of pillows). I then wake up repeatedly because my heart is racing a mile a minute and can't fall asleep again for hours, or just at all.

I have read about dysautonomia recently after finding this subreddit and it strongly fits and explains what I've experienced my entire adult life (possibly mislabelled as anxiety). My heart just skips and races from the moment I wake to the moment I fall asleep, I have had chronic low blood pressure my entire life, and just standing raises my heart rate into the 100s.

In addition, I usually sleep poorly just because my nose is non-functional and have suspected UARS as a slim woman, which I am sure does not help the heart rate situation.

In summary, I sleep horribly and wake up every morning in pain and feeling panicked. Is there anything anyone here can share that has helped them sleep better? I've run the gamut with meds and have had no luck there, but I am always open to any suggestions. 🥲 I do take magnesium glycinate and melatonin at night. I will be having surgery soon to try and open up my nasal passages and hopefully improve my breathing overall, but I'm also scared that won't work and I'll be stuck like this forever.