Melatonin, not sure which group to post in

I take two 5mg gummy melatonin before bed every night, I’m a small girl only 115lbs so is that too much for my body? Can it make you throw up if you take too much? My period is due soon so maybe that’s why I threw up but I just woke up in the middle of the night feeling sick and then threw up but then I have been fine since. I know that could mean I might be pregnant too but I really don’t think so. Has anyone experienced melatonin making you sick

I’ve been taking it since I was 16, I’m 19 now so I’ve gradually went from 2mg to 5mg but it wasn’t really working anymore so I’ve just recently been taking 10 with no issues up until this happened. I have really really bad sleeping problems, without it it takes me upward of 4 hours to fall asleep and then I don’t sleep through the night so I don’t want to stop taking it