I know we as programmers tend to be obsessed with our mental abilities, but statistically speaking you're about 30ish years off from the average timeline of mental decline. In times like this you need to take a few steps back and see what's actually taking up space in the back of your head. Usually in cases like this it's burn out, stress etc that people don't notice until they try and feel what's weighing them down.