I also have had problems with my sleep.
Started my quest for better sleep with a sleep study, just to make sure I had no issues. Actually, I have had two as DH told me I was still snoring!
The snoring goes away if I get good sleep.
Things I have tried:
Benadryl (works well, inexpensive and OTC, but I feel groggy the next day, even on half dose)
Ambien--ugh, awful side effects of sleep walking, etc
Sleepytime tea--works ok
CBD and/or CBD/THC gummies--work well.
Melatonin--worked well for a while, then stopped
Xanax, small dose worked very well with out problem, but suddenly at 65, Dr said it "was dangerous for elderly"!
Things that work well consistently and that I continue:
Meditation daily, both breathing, stretching, and music (Calm app is wonderful, and paid for via our medicare!)
Dr prescribed small dose Trazodone instead of xanax--works very well, as it also helps with underlying anxiety. I take half dose most nights, try to skip two nights a week.
We also have room black out shades on windows, and air purifier that has a low ambient sound.
Being retired, I really don't worry about how many hours of sleep I get at a time. My problem is getting to sleep at the start. Most nights, once asleep, I can sleep 5-6 hours straight, sometimes can go back to sleep. Most of the time, I get up and start my day, often at or before 5 am. Take a nap during the day if I get too sleepy--that is the beauty of retirement!
Best wishes on your quest for a good nights sleep! Find what works for you.