Question How can I diagnose this problem

Jun 15, 2019
3
0
10

While I'm playing some games ( AC Odyssey, League of Legends) the screen starts doing this sometimes, it's a bit annoying. I would like to get some tips about this problem. Maybe the graphics card has a problem? Or the monitor?
 
The video shows that the top part of the screen is just flashing a bit, you can take a closer look to find the described problem in my post.
Thank you for your time !