Seems like the safest jobs are also going to be the most boring and soul sucking, so maybe think hard about what/if you want to optimize this way.
I've been lucky to work in consumer facing engineering that isn't soul sucking. In fact, it's market segments that I find interesting as a consumer too. I still optimize this way because I'm in a place in life where I want stability when my head hits then pillow in my home that I have a mortgage on. I have a family and stability yields solace and solace yields clarity of mind which allows me to be a better employee. It really is a virtuous cycle.