Many people will borrow against a retirement account to pay off debt. A person can borrow but it must be enough to pay off the balance. Otherwise, you are paying a high interest loan on top of other credit card payments.
The shaky job market is another problem if you are considering a 401K loan. If you lose your job, the loan can no longer be paid through your payroll. You will be required to pay back the loan in full. You may also owe taxes for the premature distribution. This is on top of the 10% tax penalty you pay with the original loan.
If you want to pay the debt, file a Chapter 13! You can do a no-interest, no-penalty affordable repayment plan. You do not have to pay tax on the settled amount and your retirement is protected in case of an actual emergency.