Doctor prescribed me Vitamins D2 50,000 UI and I took it this morning. I'm scared.

I have severe anxiety and I get scared of everything. I overthink things all the time and can never get it to stop. I've seen people on this sub talk about the negative things that happened to them and how D2 has a lot more bad side effects and that I shouldn't take it without magnesium or vitamin k or whatever and I wasn't prescribed those so I don't know what to do. My mom has magnesium pills so is it ok to take it without telling my doctor first?