Avoiding layoffs in the auto industry stateside is like avoiding seasonal colds - an extraordinary few succeed but good luck to most. There are smaller Tier1&2s that layoff less but IME they usually pay lousy. My personal strategy:
1. Only accept top-paying roles. A top slot often means you earn the same in 8-10 months as others do in 12, so the layoff becomes a financially irrelevant unpaid vacation vs a financial hardship.
2. Maintain healthy liquid savings, not only to fund your layoff but also bc downturns are great investment opportunities.
3. Network and maintain open offers in the "rest" of the automotive industry (construction/ag, rail, power-gun, etc) to minimize layoffs during industry downturns. Twice I've left on a Friday and reported to the new desk in another state on Monday.
4. Be prepared to follow the work/money. Not only does being open to relocation increase the job pool but relocation incentives can be very profitable.
5. If a major downturn is imminent, volunteer to be in the first round of layoffs bc they receive the highest severance and the job market wont be as-saturated with unemployed engineers. If you ask, HR is often willing to share severance formula/details ahead of time.
6. Be ready to go bc they happen fast. Many companies cut access, call you to a bs meeting with your boss or HR, walk you out, and somebody else packs/mails your desk. Clean your desk down to non-valuable, non-personal essentials that you dont care about losing. Carry your wallet and keys. Get personal projects/vehicles offsite. Make a contact list of coworkers numbers you want to keep in touch with. And most importantly - dont be the one that leaves crying, prepare yourself mentally. Being laid off is a shock followed by a huge stress relief.
7. When laid off, send a text, email, etc to former colleagues thanking them for the camaraderie and share your personal contact info. Followup once in awhile to say hello afterward bc many become less shy about being friendly when you're no longer colleagues.