Filing for bankruptcy should not have an effect on your status as a permanent resident or your visa status. It is not a crime to file for bankruptcy.
Do You Have to Be a Citizen to File Bankruptcy?
Does the bankruptcy code require that you be a citizen to file for bankruptcy? If you are an undocumented immigrant can you still file for bankruptcy?