Tech stocks are selling off as investors question the payoff of artificial intelligence (AI) infrastructure spending.