While melatonin helped me, the results were inconsistent.
However, 10,000IU of vitamin D3 before 10am (see e.g. [0] for discussion and analysis that do NOT support my regime) seem to consistently give me a good reliable sleep schedule.
I was definitely not as thorough as Gwern, nor comparing to placebo - but for decades I have tried tens of different sleep aids, most of them useless, some working for a couple of weeks and then not, melatonin being inconsistent - with vitamin D feeling like a jackpot.
If you care to experiment, do your own reading on dosing - it should be adjusted down if you spend any time in the sun - but it should 25-50IU/lb of body weight, which is way higher than the FDA RDA. This is not medical advice. I am not a medical professional, nor do I play one on TV. YMMV. Proceed at your own risk.
[0] https://www.gwern.net/zeo/Vitamin-D