An early stock-market rally on Thursday has given way to broad-based selling as doubts about the artificial-intelligence trade re-emerged following the latest batch of earnings from Nvidia.