Vitamin D causing anxiety

Has anyone here dealt with SEVERE anxiety and a lot of physical symptoms like tense muscles, tension headaches... after high dosing vitamin D? I've been taking 300mg of magnesium bisglycinate for over 2 weeks and NOTHING CHANGED. I'm writing this while being TIRED AS HELL and unable to sleep.. when will this get back to normal? Anyone has a similar experience? I'm really desperate.