I became like this on Twitter. It made me feel so ill that eventually I did manage to leave Twitter completely - luckily for me it was at the time when Musk's new ownership was making Twitter less and less appealing and easier to turn my back on.
I have poor mental health in any case, but until a few years ago I didn't really understand why people would turn away from the news. Now I can't bear any news media at all, beyond a scan through the headlines on the guardian.
It is partly because the news these days is so distressingly negative in so many areas, but I think it is also to do with how social media has altered the way in which we consume news.
For one thing, the algorithms push the same stories at us again and again, which are often the stories that most upset us. For another, we feel more like participants - because we now have so many opportunities to comment in public. And as participants we feel like we have more at stake personally, especially because so many news stories are so very polarised. We nail our colours to the mast and then feel outraged/judged/etc by perspectives that demonise our own perspectives.
I really do think that the solution is to step away. Look at just enough news to meet your duties as a citizen (ie to enable you to determine how to vote). But don't spend any longer on it than that.
Unless you decide to actually do something to try to improve the lot of the devastated people of Gaza, your consumption of the news is just a kind of self-torture. You could decide to take practical action (donate, join a campaigning group, etc) but if you aren't going to do this, just step right away.