The herx/die-off could be putting stress on your adrenals:
"If you wake up in the morning and notice swelling, especially in your legs, the swelling may be due to adrenal fatigue."
https://www.dummies.com/health/diseases/adrenal-fatigue/the-relationship-between-adrenal-fatigue-and-salt/You could try drinking some salt.
Good luck!