Melatonin can work. Don’t take gummies though- for any supplements or medicine. Just take the pill or powder, the fewer additives the better.
Studies on the long term effects of continued use aren’t conclusive (last time I checked anyway). Obviously it’s best to also consider other factors and aids. Check out examine.com for their helpful meta analysis of multiple studies.
Melatonin also works as an antioxidant and is particularly good for eye health. It can be taken during the day without causing drowsiness.