Private credit funds lent a lot of money to software companies at the beginning of the decade when they were being snapped up in a rush of expensive buyout deals. Now many of these tech businesses are braced for disruption by artificial intelligence, and some might end up defaulting on that debt.