The CERB and the CESB for students both had specific wording added in their legislation that they would not be subject to the Bankruptcy and Insolvency Act. This means they will not be treated as income.
If you go bankrupt, there's a surplus income provision that looks at your income and at all of your expenses. If you cross a certain threshold, based on your family's size, you are required to pay additional amounts to your bankruptcy estate, which will be distributed to your creditors. You're also required to stay in bankruptcy for a longer period, for 12 months longer. CERB and CESB would not be part of that calculation in those cases.
I think I can say that consistently, across the board, with the other benefits, the legislation is silent on their treatment in insolvency.