You mistake layoffs as bad for a company. That is the best thing it can do. Google is going to enhance it profitability by having AI handle the ads. That only helps the bottom line.
So I dont think Googles business model is the risk which was the case with Kodak.