1mg or less seems to work best. Source:
https://slatestarcodex.com/2018/07/10/melatonin-much-more-th...I take melatonin (0.2mg via a spray). It is very effective. Nightmares are a recurring problem for me and other users I know, but can be solved with low doses and a lot of discipline.