After years of adulation, the stock market has soured on private-credit fund managers. Investors have also had second thoughts about the billions of dollars spent on artificial intelligence data ...