Magnesium glycinate giving anyone else bad nightmares?

okay so i’m 16 wks now and still struggling with sleep, like surprise. my ob mentioned magnesium for relaxation so i got some glycinate bc it’s supposed to be chill. i already feel pretty wound up most of the time from everything,