For me, even with these layoffs, not everyone will lose their job. Amazon and other companies will keep valuable employees. This means that wherever you work, you must constantly improve yourself and give value unless you don't like your job and want to leave. Being valuable ensures job security, even in tough economic situations like now. If you're indispensable, companies won't let you go easily.
It's easier to said than done.
Our life aren't only to work and work till die, there are time we can focus on our job, there are time we're interested to upgrade ourselves, and there are time we're burn out. Take a look with yourself, if you keep improving, you should receive more merit than in the past, but your last 2-3 months received merit are higher than your last and this month received merit.

This layoff was caused by many people who switch career to IT or there are many new people graduate with computer science degree.