I know exactly how you feel and I've felt the same way, except I'm 3 years older than you. Still haven't figured out the solution, but I'm hopeful. My biggest issue is that I'm a big picture guy.
I like thinking about AI at the high level, reading about the ultimate fate of the universe and studying macroeconomics. I don't like worrying about the details, Angular vs. React, writing unit tests, fixing bugs. I suppose I'm just lazy. But at my point in my career at least, I'm the one supposed to be doing the grunt coding work and I find it boring.
One day we'll figure it out, but it's not a problem you solve overnight I've learned. I've been dealing with this for half a decade now. Some days feel worse than others, but at the end of the day, we can pay our bills and live a pretty nice lifestyle to find consolation, so I guess it's all a first world problem.