I'm surprised the article barely mentions Vitamin K, which is needed along with Vitamin D - D to mobilize the calcium and K2 to put it into the right place.
There is another important pair, too: Vitamin D and Magnesium. But consult your doctor before taking extra amounts of anything.
There is a lot of misinformation on the web around Vitamin D, such as that even high amounts (>= 5000IU) are tolerable and safe. After a blood test showed me Vitamin D deficient, taking 5000IU (that size is readily available over the counter at my grocery store) daily gave me disturbing heart palpitations, which I didn't realize were related to Vitamin D until after thousands of dollars in tests showed my heart to be perfectly healthy. It wasn't until I had slacked off in taking the vitamins and then started taking them again that I discovered the connection. Apparently magnesium has something to do with it, but IANAD. (I was not taking magnesium supplements at the time.) I can tolerate 1000IU occasionally, but people need to be aware that not everyone tolerates supplements (especially high doses) the same.
I was happy to see the article you linked to above only claims Vitamin D is considered safe up to 4000IU. Although IMHO, after my experience, anything over 1000IU should require a prescription. Of course nothing would stop people from taking five 1000IU OTC doses to get 5000IU, but I think most people know better than to take five of the same type of vitamin daily without talking to their doctor first.
These units seem _incredibly_ low to me. Your skin can generate almost 3000 IU in just 15 minutes on the right day. Many doctors even recommend treatments of 150,000 IU or more, in one go to correct deficiencies (do not do attempt without a doctor's recommendation and supervision).
I do not doubt your experience, but it seems incredible to me that just a 5000 IU supplement gave you heart palpitations. Then again, I've also read many reports about incorrectly labeled products (e.g. milk, supplements, etc.) which contained far more D2 or D3 than what was written on the tin, causing toxicity.
GP may have had a "heart on the edge"; just because your heart is currently beating correctly doesn't mean that it may not be just a wee bit of disruption away from beating incorrectly. Or you could have a lot of safety margin. I don't know whether medical tests could distinguish the two but just in day-to-day life there's very little way for you to tell the difference. (I wish I could; it would help me a lot.)
It is completely possible for "more of a good thing" to have a negative impact on you because it pushes something out of balance beyond what homeostatis can maintain. In principle the best solution is to go get more of what you need to balance it, but that can be easier said than done. Between the things that science still just plain doesn't know and the chaff of all kinds of garbage information about nutrition on the internet it can be very hard to figure out what you need.
I appreciate your respectful skepticism. It is entirely possible that the supplements contained significantly more than on the label. However, I'd like to point out that the generally recommended dose for supplements is only 800IU in adults, with up to 4000IU only in the case of Vitamin D deficiency. The "tolerable upper intake level" is 4000IU [1]. I am unable to track through Wikipedia's sources here at the moment, but that aligns with the parent of my original comment which I believe is in a peer reviewed journal. I would imagine that number was determined due to people like myself not tolerating amounts above 4000IU.
The original RDA of 800 was designed to combat Rickets and has recently been thought to be significantly too low for folks in higher latitudes. Given the high number of variables perhaps simple RDA guidelines are not practical.
I take roughly 5k per day in the winter and it has helped a lot. See my other post for details.
I've been researching this a lot and I've read that taking D3 without Magnesium can do this. That is, taking the D3 might have tipped you into a Mg defficency. That's why D3 is taken with Mg, Ca, K and Vitamin K2. They all work together.
Did the supplement you took include those, or at least Mg?
There are some interesting discussions about Vit K and Covid, basically Vit K promotes coagulation but it seems that its deficiency is associated with the coagulation issues seen in Covid patients. And it might as well be that the correlation is inverted (that is, the development of coagulation troubles might cause low Vit K)
There is a lot of misinformation on the web around Vitamin D, such as that even high amounts (>= 5000IU) are tolerable and safe. After a blood test showed me Vitamin D deficient, taking 5000IU (that size is readily available over the counter at my grocery store) daily gave me disturbing heart palpitations, which I didn't realize were related to Vitamin D until after thousands of dollars in tests showed my heart to be perfectly healthy. It wasn't until I had slacked off in taking the vitamins and then started taking them again that I discovered the connection. Apparently magnesium has something to do with it, but IANAD. (I was not taking magnesium supplements at the time.) I can tolerate 1000IU occasionally, but people need to be aware that not everyone tolerates supplements (especially high doses) the same.
I was happy to see the article you linked to above only claims Vitamin D is considered safe up to 4000IU. Although IMHO, after my experience, anything over 1000IU should require a prescription. Of course nothing would stop people from taking five 1000IU OTC doses to get 5000IU, but I think most people know better than to take five of the same type of vitamin daily without talking to their doctor first.