I would try to be honest with your spouse about how it's affecting you. Let them know you want to support them, then ask how you can help. Everyone's different, so they may want more encouragement or they may want time alone. Asking them will be the best way to figure it out.