I have recently installed Ubuntu 22.04 LTS . and sometimes the whole screen just flashes.


Everything just starts overlapping each other.
It goes away when you press any key. But I want it gone.
Output of lspci -k | grep -EA3 'VGA|3D|Display':
00:02.0 VGA compatible controller: Intel Corporation CometLake-H GT2 [UHD Graphics] (rev 05)
Subsystem: Acer Incorporated [ALI] CometLake-H GT2 [UHD Graphics]
Kernel driver in use: i915 Kernel modules: i915
01:00.0 VGA compatible controller: NVIDIA Corporation TU117M (rev a1)
Subsystem: Acer Incorporated [ALI] TU117M
Kernel driver in use: nvidia Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
Does anybody have any idea on how to fix this?