I’d second this. Check you sleep. #hours. Get a sleep study, make sure you don’t have sleep apnea. Also review your diet and any substances you consume. In my case it was sleep apnea in my 40s that took me from “coding like a m’fing riot” to barely able to concentrate long enough to code a for loop. good luck.