Apologies for giving you a boring canned answer when you are sleep-deprived and looking for help. But I swear these things really helped me.
Number one: think about getting a sleep study done by an actual sleep doc (pulmonary doc or neurologist). This was life changing for me. Don't go to a chiropractor or whoever the fuck and get a CPAP machine.
Also, and this is important: Have you looked into tips for "sleep hygiene"? None of them are a quick fix like Xanax, but they can be powerful when used together.
These include things like:
- going to bed and getting up at the same times every day. this means getting up at your normal time, even if it's a weekend, even if you didn't sleep well that night, just make yourself do it
- when sleeping....making sure the room is dark, cool, and quiet (ear plugs are a big help here). by cool, I mean 68-69F (about 20C).
- cutting way back on caffeine and/or eliminating it...and absolutely no caffeine after lunch (the older we get, the longer it takes to metabolize caffeine)
- not looking at any glowing screens (TV, phone, computer, tablet, etc) before bed time... for at least 15-30 minutes
- avoid eating / drinking a couple of hours before bed time
- using your bedroom only for sleeping and for sex
And when you have trouble sleeping, it's a very good idea to get out of bed, go to a different room (one that is not too bright) and do something boring like read a text book for 15-20 minutes then go back to bed and try again.
When we stay in bed and aren't sleeping, we're training our brain that it's OK to do that. You want to beat it into your subconscious brain that the bed / bedroom is for sleeping.