If you are experiencing difficulties with the IRS, know your rights as a taxpayer. Read the Taxpayer Bill of Rights (https://www.irs.gov/pub/irs-pdf/p1.pdf). Also consider contacting the National Taxpayer Advocate service (https://taxpayeradvocate.irs.gov/contact-us). And you may want to engage a tax professional who can represent you in this matter.
When debts are cancelled in bankruptcy cases, the cancelled amount is excluded from gross income. Tax attributes are certain losses, credits, and property basis that must be reduced to the extent of the exclusion.