Semi related, I had occasional trouble sleeping at the designated time (I would sleep an appropriate amount, but but not when I wanted to.) After reading gwern’s page on melatonin I tried it since it is easy and low risk, and now I can fall asleep consistently when I want to, by taking melatonin X minutes before.
https://www.gwern.net/Melatonin