I do take plenty of sodium/potassium as salt, but struggle to tolerate Magnesium.
Since you seem to be sensitive to magnesium, you could try using just 1 cup of the Epsom salts or magnesium chloride at first or even 1/2 a cup and build up from there. I find magnesium chloride flakes more effective, but since it's more expensive, I combine it with the Epsom salts.
I take 4 MG of HC first thing in the morning and also 1 capsule of Dragon Herbs Super Adaptogen.
Good luck! My best advice would be to find a good integrative practitioner who can help you find the root of these problems.