On Wall Street, rising fears about artificial intelligence keep pummeling the shares of companies at risk of being caught on the wrong side of it all, from small software companies to big wealth-management firms.