I'm not sure I'd agree. Sometimes it really pays to play to your strengths. I've had jobs that were odd-work and putting out fires for a few years now and I've never been happier. I'm good at that
Programming-wise it isn't as hard to find as you might think. Maybe not working FAAMG or similar, but it's quite doable. If you don't compromise on the desire to work only on interesting* stuff when a big paycheck comes along, you'll eventually end up in a position where you only work on interesting stuff. The gamut of work is wide.
To be honest such work isn't even that rare. Most people would rather make $200k and complain about how boring their job is than have an interesting one. I think for many people "interesting work" is often the same as "stressful work" and so the interesting positions are not as easily filled.
[*] Interesting as defined by me, and probably the parent poster as well. Obviously this is subjective.