I managed to fix the issue. Not sure what exactly fixed it so here are some of the things I did :
- Using NVIDIA control panel to force the app to run of the GPU didn't work
- Using Windows Graphic Settings didn't work either
- I updated both the Intel Iris Xe and the NVIDIA GPU drivers
- I updated Windows
- I disabled the Intel Iris Xe driver in the Device Manager,then enabled it again
After that last step it started working correctly.