There is a difference between understanding his problem and trying to be too comforting. When he talks to you about his bad mood, he needs someone to hear him out and not oblige him with comfort and solutions. Stop suggesting how he can make things right. It is best to just be on his side and let him do the speaking.
Must Read: 10 Things Your Man Doesn't Think When He Sees You Naked