The sound advice for the past decades has been, just invest in a low-cost ETF tracking the S&P instead of picking stocks to minimize risk and invest in the market broadly.
So a huge number of people have done that, believing they're diversified, while tech makes up 40% of the index.
Yes you could sell your S&P and find things to invest in least likely to be impacted by a potential bubble, but your average 9-5'er with automated contributions to their 401k is probably not sophisticated enough to do that.
And that's assuming only these companies would be affected if there was a massive draw-down in tech/AI related stocks. We haven't really seen a situation like this before, so it's not easy to predict what effects there might be in the broader economy.