The symptomatology is due to infections as you have observed. You have two choices, the first is identification so you can target (see below for testing labs) or using bombing techniques meaning using a wide array of antimicrobials that can cover a wide spectrum of pathogens.
There are a host of different organisms which means there is not a one size fits all approach in terms of treatment. For instance most of the common ' parasite cleanses' may not touch your infection so do not be fooled by this thinking (I hope that I am not offending anyone with this statement).
Antimicrobials with good cross killing ability include caprylic acid, fresh minced garlic, black seed with honey, grapefruit seed extract, lemongrass.
If you do not see any die off using this then add or subtract. Add goldenseal leaf (not root) and hemp oil (Nutiva etc).
Magnesium is not all the same, the best results from many is Doctors Best High Absorption. Magnesium loss occurs with any stress including infections. Mag loss includes anxiety, panic attacks, palpitations, sleep etc. Other electrolytes should be considered as well including potassium and sodium.