You have to do things for yourself as well as him. Aubergine is right - the best way to help him is to look after yourself. It's not selfish at all. I think everyone can understand that if your head is not in the right place it makes it so much harder to deal with other people's problems too.
Is there anything practical that you think you could do to help him out?