Fortunately, your 401k is exempt from bankruptcy. So you are blessed in that regard.
Do a budget. See how much you need to retire. Assess you social security income. What is the shortfall between your SS and your budget. This is what your 401k is going to have to support.
Conservatively, you can take about 4% of your 401k annually. Is that going to be enough? If not, then evaluate your options. Can you work parttime? Can do you have any other sources of income (rent out a room in your house? if you have one.) Find a less expensive place to live.
Define your problems. Define your assets. Then start finding ways to fill the gap. It is never hopeless unless you allow yourself to feel helpless.
Blessings - hope this helps!!