Are you asking about exceptions to the rule for a 1099-C
See IRS publication https://www.irs.gov/taxtopics/tc431
or seek legal advice from your bankruptcy attorney.
Disclaimer: Not a tax professional. Information gathered from internet links. Anything dated in June 2019 was posted in prior years and is before the 2019 limits and changes.