A selloff for tech stocks got even worse on worries that Wall Street’s frenzy around artificial-intelligence technology sent prices too high.