I'm approaching my 40s and I've had this dilemma since I was 25. I used to strive for being a top performer despite my hatred for working in this industry. I accelerated through the lower ranks and significantly increased my salary, but my happiness plateaued very early on. Over the last few years I've learned to lay low and give just enough to not get fired. I couldn't care less about the company or my work, I just want to clock out at the 8 hour mark - and not a minute later - then go work in my garden. I found this to be the optimal balance between financial security and my happiness.
If you've ever read "The Gervais Principle" - https://www.ribbonfarm.com/2009/10/07/the-gervais-principle-... - you can classify me as a "Loser" on that spectrum.