Even as share indexes reach record highs on the back of corporate profits, bankruptcies have also been on the rise amid higher material costs and labor shortages.