I had high hopes for Mg; tried all available variations (can’t tolerate Mg-oxide at all) but no improvements in symptoms (including a couple of disorders on your list). In fact, slept all of 3 hours last night. But other people should give supplementation a try in case they are deficient.
Yeah, mag oxide is total crap (no pun intended :)) but you should definitely be able to find a good brand/form and reap the benefits.
Let me ask you; what did you take and for how long? How much did you take? Have you tried mag oil that you spray on?
I find most people take way too little mag and also take it too sporadically.