side effects from melatonin 3mg

this is the first night i've taken melatonin 3mg and withing 30 mins i already had weird side effects. i got muscle spasms in my legs and arms, i feel restless and irritable, stomach ache, dry mouth and heart palpitations. i was a little nervous to take melatonin but i wasn't overly stressed about it and now that i have side effects my anxiety got worse. i took it at 11:40 pm and it's almost 1 am now so wouldn't the side effects be gone by now?? before taking melatonin i would be alseep by now but i feel like it just made my sleeping problems worse. my doctor suggested i'd take melatonin bc i told them that i wake up multiple times a night. does melatonin make anxiety worse? i hope it doesn't make me feel depressed bc i read that can happen?? does anyone know how long this will stay in my system?? i really want to sleep but feel really irritable. 

Hiya you just worked yourself up. You said at the beginning you were nervous about taking it. Im the same with taking any tablets. Scared and then get side effects cause I think of them. You didnt have allergic reaction to it so you are fine😘

well ive been wanting to get melatonin pills for a week now because i was excited to actually get a good nights sleep but i guess i probably did get anxious about the side effects. i don't think ill take it again though because i just feel sleepy throughout the day and i don't want to be anxious like that again.  thank u for replying!!