Look up huberman labs episode on sleep protocol.
He outlines problems with melatonin and suggests better alternatives. I believe he cites sources.
Can also seat for huberman labs sleep protocol toolkit if you just want a summary.
Melatonin has a host of issues some I knew about before Huberman, and a bunch more I learned after listening to his discussion. It’s legit