Analysis to find out what you could have done and improve on that.
How do I control my anger after losing a game?
If you go on a losing streak, take a break. If you still do keep playing, I have a tip. When I go on a losing streak, I kind of just stop thinking about my moves- I brainlessly roll out my opening and then make a losing blunder by move 15. I suggest you deeply think about your moves if you do as I do.

Like a fungus!
On your mother's dildo! And believe me, if she hasn't menopaused yet she's very likely to have one in one form of another. Which, if you send it to the original inquirer, will give him what he asked for. Which completes this little circle. So much for building interpersonal affinity, but that wasn't the point of chess anyway.
Anyway to come back from that to the topic - yes, better to stop for a while and ask yourself why it makes you so mad. It reminds me of laughing yoga. Everytime you lose, start laughing instead. To the attached mind it makes no sense at all but soon you will see the point. Losing or winning is entirely irrelevant. Your mind is attached to potential future reward for the survival of the organism, but stays compulsively oblivious of its already survived state (you are alive so be happy!)

This is a really bad problem for me, as I prefer to win. And so would everyone else.
Remember that it's just a game.
Review the game you lost and see if you can find a mistake to learn from. You will be a little bit better the next time you play.

In no way am I "good" but I do have my moments. My rating is kinda trash haha.. but, in my opinion, you just need to take a break for a bit.. Limit your games to at least 3 times a day until you're mentally back on track. Don't quit playing completely. Just slow down, take a deep breath, and realize that your biggest downfall isn't completely your inability to play well, but your stress levels. The more stressed you are, the worse you play. I've noticed that I play much better when my mind has had a rest. Sometimes I'll spend hours playing Chess, and usually when I do, a losing streak is on the horizon. It's good to change your pace. Play slower games and analyze them, understand the wrong moves you make and study them, then take it to a faster game mode. The thing I love about Chess is, a lot of the time there's always a way out. You just have to find it! So, don't give up! Just take a break from it.. Losing is part of winning and you will never get better if you can't handle losing.

Throw your king across the room. Don't hit anybody with it. Go find it afterwards or bring another one so you can play another game. Bribe TD to get out of penalty. Read story about King Canute and his chess game argument with Ulf. It's a good story.
Have some mindfulness routine on a daily basis. Not just anger, everything will be controlled. You will see how the external environment stops affecting how you feel internally
It is important to have friends who share your passion for the game, sorry but there is no substitute for that, losing sucks, it really does, you just have to accept that.

chess may be a game, but it gets very personal.

honestly if you really care about your rating and winning, dont play that many games at once. It feels tempting but for me i definietly notice a dropoff in accuracy after a few games. Fist game i will make maybe on innacuracy, next game i blunder a full queen. If that starts happening, take a break, maybe try some puzzles and get back to having fun
I lose my rag,hard delete my account ranting I hate this pointless waste of time and then an hour later start again..... May well be a better solution than my method 🤣