Investors are worried that tech companies are overspending on artificial intelligence and there's a bubble that could burst.