Here are some things that helped me:
-Distract yourself, think of your favourite movies, songs, make a story in your head, etc.
-read a novel, read your favourite chapters here (night/dark mode and lowest level of screen light!) until you start feeling sleepy.
-and fix a sleeping time!!! Sleep on your decided time without fail!
-listening to white noise also helps!
-sincerely, someone who has a terrible sleep anxiety! Hope you feel better!

im in this loop where im dying to sleep but I dont when I decide to go to sleep the headache is so bad I feel like throwing up SOMEONE HELP ME