I'm mid-30s and think about this all the time. I went from psych -> economics and after being exposed to SAS/Stata decided to go into data analysis and then engineering. SWE looked like the picture of success at the time. I think about tail risk a lot and have been saving diligently for security and hopes of reclaiming my time from work.