Unironically don't take it. The baby stuff is brutal but once that levels out (1 year old) then you'll think more clearly and get to embrace new challenges like actually getting a toddler to go to sleep before midnight....
Tldr. Magnesium can be skipped. Focus on getting whatever rest you can, when you can. And high-five dad. You're both doing great!