Thank you for mentioning the insanity of perpetually and badly reinventing the wheel.
I’m in my 40s now, and I realized last year I’m utterly burned out. The passion for programming is just gone. I get home from work now and the last thing I want to do is look at code again. My garage is filled with Arduino projects I can’t bring myself to finish or throw out.
Unlike you, I haven’t found another career path, but I did find solace in making music. At least it is much more permanent than software and something I can share with my kids.
Art, in general, survives time, whereas it has become apparent that software does not.