n general with TRT, getting your hormones back in balance improves brain fog & memory rather than worsens it. Did this start only after starting TRT & is it noticeably linked to your injection days? It could be the the dose may not be high enough if overall your benefits are lacking, or if you've been on TRT for some times & all the other benefits are there you should run a CBC/Hematocrit. There is a low chance that you may be producing too many RBC which can potentially lead to that kind of feeling which is usually accompanied by headaches.
Long term use of TRT does sometimes lower some of the neurosteroids like pregnenolone, and DHEA-S. Supplementing with these can sometimes help with memory problems.