Layoffs happen, this goes to the concept of "Average" where EVERYONE at work is your competition. "Average" is a mathematical point in the middle where half the people are "Above Average" and the other half are "Below Average", no one is "Average". While I was never the best I always strived to be in the "Above Average" half and everything worked out OK. The "Above Half" constantly picked up new skills and duties at work, received more promotions & more pay. The "Below Average" half fell behind, subject to more layoffs and lower pay. Plan for your next job to be in the "Above Average" half, let them know in the interview that is where you want to be, it is easy to spot who is above or below average, try to work with the above average employees and strive to compete.
Thanks for the words. I would agree to a certain point. 1 of the layoffs I went thru, the company eliminated the division. Regardless if you were above average, average, below average, etc all of us were let go.
I've been laid off 3x before. The latest company I am with it's been over 10+ years in the Aerospace/Defense area. Quite a lot more stable than my previous engineering roles in software/hw. Hopefully there are opportunities in the areas you are seeking.