What are you supposed to do when...

What are you supposed to do when you love someone but you’re tired of their negativity? I love my boyfriend dearly but I’m sick of listening to his everyday complaints. It’s not often that I am happy and stress-free so when I am, the last thing I want is someone to bring me right back down. I feel like if I tell him this, he’ll just get mad at me and feel as if he can’t talk to me about things. And if I don’t, then he’ll just think I’m ignoring him or being a bitch, idk. Sometimes I’ll wait a few hours to reply to his texts about him complaining about his day because I’m just so annoyed. :/ 🙄