If you count on your company to never lay you off, you end up like old IBMers who got complacent, found they didn’t have a marketable skillset and when they got laid off and couldn’t find a job, they complained about “ageism”.
I’m 48 for what it is worth.