You’re singing the “everyday is a cramp” chorus
https://wellness-without-burnout.cavandoragh.org/calm-the-mind-calm-the-night-sleep-strategies
You’re singing the “everyday is a cramp” chorus, and the only instrument out of tune is your magnesium meter begging for a tune-up.