I'm so glad you asked the question. Pretty similar to me--turning 40 this year, thinking about switching from music. I'm currently teaching music in higher ed, which was always the dream, but I've been stuck in the rat race of non-tenure track land. Something about having a new baby a year and half ago made me realize that I want to work a little less so that I can spend more time with her, and make a little more money to prepare for her and our future. Plus, I've been doing FCC for about a year and I really love learning these new skills. Chipping away at it little by little, I finished the front end certificate, and I'm working my way through data visualization.
I've often thought that there are a lot of similarities between playing music and writing code. Musicians are used to practicing and making progress little by little over a long period of time. Also, the idea of constantly learning and improving seems pretty natural coming from music. I don't think I'd ever give up music, but it's become more clear to me that it doesn't have to be my main source of income. (I did my tribute page on Charles Ives).
Anyway, best of luck to you and to all the 40+ developers out there. Seems like it's a big group!