Investors are nervous about the massive AI spending from the tech giants and whether that will pay off.