People should expect more layoff from different companies all over the world. The world is becoming more civilized and AI is taken most of the jobs both physical and the online jobs. It's time people becomes more creative and skillful as not to depends on salary job because if you are fired without a person skill or entrepreneurally minded, you end up becoming less important to your family and the society. Elon Musk is building more robot to take over human work both domestic and industrial work. Domestic workers would be lay off, industrial/factory workers would be layoff for a robot, so we should expect more. The best thing to do now is to embrace online skill that will help us when the physical jobs will be taken. Though there will be physical jobs that robot will not do, but those will only be few and less attractive to work. Simply because a person that baught a robot to work, should have the reason of saving more from the initial amount he usually pay for such job. So robot will work an expensive job to minimise spending and human will be used for less expensive job.
In the era of increasingly rapid AI development, of course layoffs in companies will definitely happen sooner or later because as you said, many jobs will be replaced by AI, although not all can be replaced by human jobs. However, we must be smart in adapting and more creative because these opportunities are also many due to increasingly developing technology.
Apart from Amazon, there may be many more companies that will be hit by mass layoffs, even though they have been working for decades. However, if you are laid off from Amazon, of course that experience will be good capital to develop yourself again in the future because in an era like today, the priority is to have skills.
Therefore, if possible when working at a young age, you must be diligent in saving, investing and developing a business, even though it is difficult to do it all at once, at least seek knowledge first. Because if we have stopped working or been laid off at least we don't have to bother looking for work, because if we don't have knowledge then our money will also run out a lot and vice versa, with knowledge and experience we can survive in the midst of a difficult world economy.