Renewed scrutiny of AI poses a risk for the stock market, some analysts said.