Hello, This is not an adverse effect related to magnesium. It may be a temporary adverse effect related to calcium intake. I recommend to wait a couple of days and see if your situation improves. If this does not occur, consulting again with your doctor will be necessary. Hope I have answered your question. Let me know if I can assist you further. Regards, Dr. Ilir Sharka, Cardiologist