The private credit industry is under pressure after a pair of regional banks disclosed ties to bad loans.