The gut is the primary place for infection and they can be a number of pathogens that can harbor there.
The gut/brain axis is a well studied connection and when the body is harboring pathogens (especially when in the gut) then anxiety, brain fog, depression, memory issues etc will occur.
Getting a proper test can help otherwise you will be trying a number of products.
Supplemental copper may help with the hemorrhoids, copper plays important roles in immunity as well. Talk to your doctor about this.