Hi,
Thank you for writing to Microsoft Community Forums.
I understand how it feels when notifications keeps popping up while playing a game.
I would suggest you to turn on focus assist on your PC to avoid notifications popping up while playing games. You can refer the article on Turn Focus assist on or off in Windows 10. Once you turn this on you will not receive notifications while playing games or any important work you are doing.
If you have any further queries, you can get back to us and we will be more than happy to assist you.
Regards,
Prakhar Khare
Microsoft Community – Moderator