It is a big puzzle, little information given, and many many variables. Plus, the geniuses of the medical world don't come on this site anymore, because it is infested by trolls, lonely old people who have nothing else to do but bother others, using several covers, like being Christian or whatever. Kind of like Smiegel in the Lord of the Rings. Against them we sometimes have to fight, like we fight bad bacteria in our gut.
I can offer general advice only, which isn't very smart. Obviously something in your diet is bothering the system chemistry. So, be a radical. Totally eliminate everything you've been eating. Change to totally eating totally differently, think along those lines.
I have reports that half the population of southern California suffers from what you mention. It is widespread. It is from the illlegal immigrants who were not screened for health issues, like we used to do before the communist democrat presidents opened the gates without concern for our health, the destroyers.
My opinion, the only way you fix it, is by what you let in, to either your mouth, or your country, or your house, etc. Makes sense, right ?
Suggest to fast 2-3 days. Get an adderal prescription if you don't have the willpower to not eat. Then, only whole natural organic food for two weeks. There is never any downside to eating what God provided, vs what the food conglomerates put up in their little packages. Mineral replenisment is good, but the answer probably not as simple as "take this" or "take that". Usually it is multiple mineral deficiencies but, I know nothing about you, so can't really say, and neither can anyone else, lacking all pertinent details !!
Otherwise, everybody would be cured from random internet sites , you post on and some stranger says "do ____, and take _____" and you are cured !! Not going to happen. As in all cases, the health of your body will depend on your brain's ability to fix the body. But, the brain can't function if the body's not well.
The answer, is Our Lord's diet. Just pray to Him, ask him what you should be eating, I guarantee you , He will tell you if you are sincere in your humble request.