Ok, so I uninstalled all the drivers, disabled the iGPU from device manager and from BIOS, reinstalled the nvidia driver, and although the iGPU always shows in the device manager as hidden, it seems that the problems don't occur anymore so maybe it was the intel driver causing problems with the nvidia ones. Thank you very much for your support and for helping me solve the issues