If the sponsorship process started before filing a bankruptcy, then there should be no issue in continuing the sponsorship process, but it is best to verify this with an immigration lawyer or with Immigration, Refugees and Citizenship Canada given how rapidly policies can change. If you are undischarged from a bankruptcy, then you will not be able to start the sponsorship process.