UI flickering in Editor

I have a geforce 3060 in a gl76 msi laptop, and I was experiencing this issue, I have fixed it going in the Nvidia control panel → manage 3d settings → restore, to reset the settings to default, it has worked also on my workstation with a quadro rtx 4000 where UE5 always crashed with exception_access_violation crash message in the crash log. Just reset the nvidia 3d settings to default and make sure you have the latest drivers