Private credit managers are increasingly turning to the once-unthinkable: Trading in and out of loans to dump troubled assets and hunt for bargains amid the industry’s first stress test after years of breakneck growth.