Only writing this because I didn't find anyone else referencing it, but I'd also check for some sort of a deficiency. It turns out that I was severely vitamin D deficient, as soon as I started taking it daily all my long-term health problems (including mental fog and memory issues) pretty much disappeared.
I would like to add, that I had the same issue. I was consistently worse at my job during winter. I picked up vitamin d and feel much better mentally. And i can finally work properly.
One more thing - co2 levels inside room can have significant impact on your mental capacity. So open the windows every morning, lunch and evening.