The challenge of bad debt in business is unavoidable as you have rightly said but like you also said we can also avoid this challenge by being accountable in our business as bad debt advisors in a situation whereby we take depth that we cannot pay off and this kind of death comes to b the organisation or business later.Bad debt in business is not good for business at all, although you can't avoid debt in business but you can avoid bad debt.
To avoid bad debt in any forms or types of business, never spend beyond your earning and make sure there is good accountability in your business, always keep record of everything you do.