The Nasdaq 100 Index is on track to enter a correction, as investor worries about the eventual payoffs from artificial intelligence investments are souring sentiment in the technology giants that have driven most of this year’s stock-market advance.