What are the downsides to filing for bankruptcy?
"Your credit score does not go to zero when filing for bankruptcy in the United States. Credit scores, such as the widely used FICO® model, operate on a scale ranging from 300 to 850. Filing for bankruptcy will significantly damage your score, but it will bottom out within this established 300 to 850 range—not at zero."
I highly suggest speaking with someone nearby who can tell you exactly what will happen in your circumstances.
It is best to get as much information and to make an informed decision when it comes to your finances and credit score.
Whatever you decide may follow you for a huge part of your life.
Knowledge is banana! As some would say.