Back in the day they managed to avoid 'layoffs' by transferring thousands of people from Fire Phone -> Alexa. They somehow avoided layoffs from shutting down Prime Air (drones, not 767s), even though that had a lot of employees.
They're pretty good at getting people to leave without doing 'layoffs'.
Heck, if you believe that they've always had 5-10% 'unregretted attrition' targets, which I do, and apply it to the whole company, that's 50-100k employees per year!