How can I stop having such a negative mindset?

How can I stop having such a negative mindset?

I’m negative. I like to remember other people’s shortcomings or bad things that happen to them, then criticize them with my best friends. It’s a bad habit, but I can’t break it. Recently, I’ve been thinking about this habit and I’m...