This is not uncommon at all. I powerlift and at our gym at least we refer to it as squat brain. I'm not sure what causes it, but I always thought it had something to do with how taxing heavy training is for your central nervous system.
I used to do crossfit and whenever the workout was done I couldn’t do simple math. I don’t think it effected anyone else like that, so always felt like an idiot.