I realize that's difficult in today's performative world, where an quick perusal of LinkedIn shows loads of people that are "passionate" about banking compliance or insurance claims or whatever. Many companies have also have fostered this false idea that companies are a "family". That is always false. The best companies are more like a team, and when things start to go south, sometimes people on that team are cut.
Ironically, I think the professions where people really are passionate and see it as a "dream job" (think professional sports teams, actors, musicians, artists, etc.) generally have a much healthier view of their employment in the first place because they realize how tenuous it is to begin with. Point being, if you're considering suicide if you lose your job, you should be in therapy long, long before it gets to that point.
One final note: before I get the pushback of "that's all nice to say until you have no income and are living on the streets!", let's get real for a moment. First, I have a ton of sympathy for people who are laid off - it sucks and can be very destabilizing. But lets also get real - people were laid off from Dropbox with a very generous severance package and they are in a highly paid industry to begin with. None of these people are going to starve, and nearly all of them will be able to eventually find employment (if perhaps not at the same exact high salary as Dropbox). Any mental health issues folks have after getting laid off is nearly always the result of tying one's self-worth to one's job, and that's the link that should be broken.