Assalamu Alaikum
I've been having episodes of insomnia for a longgg time. It's gotten MUCH better over the years alhemdulilah. I decided to make a little list of what helps/helped me:
*Getting my mind ready for lucid dreaming. I know it sounds weird, but basically just imagine a scenario until you actually get into your REM cycle.
*Making lists during the day of what I have to do for the next day or next week, that way I won't be thinking about what I have to do as I fall asleep.
*Not going online as often or using bright devices, especially before bed. I don't know, it's like the light from the computer affects my sleep, not sure, but that's what it feels like to me lol.
*Not eating a lot of processed foods. There's foods that have MSG in them or certain chemicals that will cause insomnia over time.
*One really good advice someone gave to me was if you continue to recite quran before you sleep, you will fall asleep simply because shaytan would rather have you sleeping than keeping with the dhikr of Allah.
*If none of that helps, then just use your time to pray so that your time doesn't go to waste. It will make you feel kind of special cuz everyone else is asleep and you're having a one-on-one with Allah.
Inshallah it will get easier for you

Just don't take sleeping pills because they prescribed those for me once a long time ago, and instead of falling asleep, I started to hallucinate. Never again for me after that first dose! Inshallah khair!
fi aman Allah
w'salaam