So without details, this is impossible to assess.
Your lack of business experience is showing.
There are many more alternatives—and a wide variation of “walking away” without declaring bankruptcy.
The owner can negotiate with creditors one at a time—just one example.
The business can declare bankruptcy—and depending on the type of ownership that may not affect the personal credit of the individual.
Small business attorneys are experts in laying out a wide variety of options.
So without details, this is impossible to assess.
Every business that loses money, EVERY ONE, will eventually run out of money and close. It’s the difference between being Busy and Good Business.
If you’re a lottery winner, and give money away, eventually you’ll be out of money. Every. Time.