Notifications in Teams are somewhat annoying. You can turn off some notification features in Teams, as detailed here and here. I tried going via settings a year ago, and it didn't stop the Teams icon in the taskbar from flashing orange at me whenever something happened on Teams. At the time, there was a feature request that had lived for several years to make Microsoft implement a way to stop this flashing. It's linked to here, but the link is dead now. Maybe they finally implemented it?
I had some luck using SilenTeams. But it would reset whenever Teams did an update (which was at least once a week). Still, I wrote a script that would run this once a day, and that seemed to work. Then I stopped keeping Teams open, and would only open it whenever I need to do some work in it. It's probably the most permanent way to avoid notifications, but not helpful if you need to have Teams open.
Hope some of this can be helpful!
Edit: See also this post.