From my experience yes this all can be due to vitamin d.. I am having similiar symptoms and having suppliment everyday.. Three weeks passed and still waiting for relief.
Low Vitamin D can cause fatigue, anxiety, depression, insomnia, heart palpitations, sensitive eyes, headaches, brain fog, etc. so can magnesium deficiency.
US lab range says 30-100ng/mL is normal. You need to be above 50ng/mL though.
You need D3 supplements, magnesium & Vitamin K2 (if you take medications that may be a problem with K2 consult your doctor).
Do not take D2.
You need daily supplementation. You can start at 5,000iu of D3 daily and work up to 10,000iu daily. Drink plenty of water. Retest your blood in 3 months.
The only blood test that can diagnose vitamin D deficiency is a 25-hydroxy-vitamin D (25 OH vitamin D). Unfortunately, some doctors are still ordering the wrong test, 1,25-dihydroxy-vitamin D.
I have your symptoms and have been supplementing for 9 weeks. I've had improvement, but I am not symptom free yet
I agree, thank you!!!!!!!
You might consider some Psychotherapy. Or failing that how about some meditation, yoga, music and deep relaxation. Anything but medication. You will come right.