Too much, and kidney problems
The fact sheet says very high doses can cause magnesium toxicity, with low blood pressure, vomiting, trouble breathing, irregular heartbeat and, rarely, cardiac arrest. The risk rises with reduced kidney function or kidney failure, because the body can’t clear the extra magnesium. Toxicity has been linked to laxative or antacid doses, typically over 5,000 mg a day.[1]
Medicines
The fact sheet lists interactions with osteoporosis drugs (bisphosphonates) and some antibiotics (tetracyclines and quinolones), which should be taken hours apart from magnesium; diuretics, which can raise or lower magnesium; and long-term use of acid-reducing proton pump inhibitors, which can cause low magnesium.[1]