The brain fog could have been a consequence of the ensuing biological war you started by introducing a new strain of bacteria to your digestion for which your metabolism had yet to adapt to.
These negative effects have been noted in the literature, too, so I’m not alone: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6006167/
So whether the issue is too much bacteria or poor compatibly with a host remains unanswered by your linked study.