People should get their calcium and PTH levels checked before taking larger doses of vitamine D as low vitamine D could be result of hyperparathyroidism. In this case vitamine D can kill you (and for sure will give you cognitive problems, brain fog and such).
Most doctors/endocrynologists is poorly trained to deal with that..
Belive me I have been there (had low vitamine D and high calcium due to thyroid cancer affecting parathyroid glands and had been prescribed vitamine D by incompetent endocrynologist) and this article helped a lot..
https://www.parathyroid.com/low-vitamin-d.htm