I think the magnesium was the culprit for your experience. Don't take anymore! The same thing happened to me. While magnesium is usually well-tolerated, Mounjaro slows digestion, causing you to absorb too much magnesium at once, leading to those symptoms.
Also, you might not be eating enough...