It is not your job to make anyone happy. You literally can’t do that for someone else, believe me, I’ve tried.
It’s stellar to be supportive and be there if and when they need you but don’t think it’s your responsibility to make someone happy any relationship. If you do, you’ll drive yourself crazy thinking you’ve failed or a not a good partner because you are helpless in making the other person happy. You start judging your talent as a partner depending on the mood of the other person, and when you are letting the mood of someone else dictate your worth that’s never a good thing.