I would say do NOT use your 401K to buy a house

If you do that, then you’re using up your retirement funds. THEN what? I’m sorry you used as much of the funds as you did, because 401K funds can’t be touched in BK.
Realistically, how long do you think you hve in your current house. Use every one of those days to try to find a rental house with accessibility. You might also try contacting local charities, since they may have a network in place to help. You can even contact your local news consumer reporters for help.