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.