Some people on this board in other sitches are going to Al Anon meetings to learn how to detach from people who are acting crazy and won't get help for their problems, whatever their problems are.
They say it can be helpful even if H is not alcholic. There's also National Alliance for Mentally Ill have some meetings.
You can't make a depressed and flailing H stop flailing. But you can not let him do it on your sofa.