Acknowledge this is very difficult situation. Usually people can deal with 1 problem at a time but its still very stressful. 2 is really hard. If you can deal with 3 you are a mensch. (eg: dealing with new baby, starting a company, deal with aged parent all at same time).
What you can do:
1. Work at your skills. Create a 40 hour schedule for yourself filled with job applications, becoming better at skills (educative.io is a great resource for indepth technical topics and interviewing skills ) .
2. Enjoy this break. Weird as this sounds - you have the rest of your life to work. What you can do is workout, get back into the best shape of yourlife. Travel either locally or with spouse - make sure she is happy.
3. Help others. Helping anyone will help your mental health tremendously. It can be at a soup kitchen or anywhere else. Help friends in similar situations. Write a blog for others in similar situation.