Market professionals already on edge about the staying power of soaring artificial intelligence stocks are starting to grapple with another risk: public anger toward the technology.