The struggles of the nascent private-capital market, weighed down by lending to software companies whose businesses are under attack from artificial intelligence, has captured the eye of the market and the news media.