While melatonin pills are considered safe for most people, side effects include headaches, dizziness, nausea, and drowsiness upon waking. More safety concerns exist for older people, pregnant and breastfeeding women, and those who take other medications; melatonin can even disrupt hormonal development in children and teens.