Private credit has grown from a niche corner of finance into a market of well over $1.5 trillion that now funds a large share of mid-sized companies. With defaults rising and regulators asking pointed questions, the industry faces its first real test. Here is what borrowers, investors and boards need to understand.