Technology stocks in the S&P 500 were heading for their worst week since April as highflying megacap names like Nvidia Corp.