i would like to push back a bit on this and say, it is worth working hard, but i would argue a lot of programmers get hindered by the illusion that programming is important, or even delivering results. unfortunately in software this is exacerbated by the very real world-wide impact that programming actually does have, but: it will always be subjugated by
the most important job...
the most important job, that has ever existed, and that will ever exist, is politics. moving up the career ladder you have to start thinking in terms of people, or maybe even in terms of mammals and mammalian group dynamics, cos thats who youre "programming" now, not computers. and most programmers aren't cut out for that, just as most regular people aren't cut out for programming. its hard to say why, but thats the on-the-ground data i see again and again.
i also would like to push back on the "personal projects" mindset - the sentiment often being "just live in your own little world" (not saying it is here, but this is what it often implies.) if youre going to admit defeat and retreat, be honest about what youre doing. dont dress it up as a 'win'. ceding financial/social/political agency is never a victory, but sometimes a neccesity. quitting a mag7 like google is objectively a step down whichever way you slice it. you can count on two hands the number of companies that have the level of resouces that google does - it might be worth to swallow ones pride and slog it out.