Repeating Cobito's question, when do the problems start? Because I assume it hasn't always happened.
You have installed 3 versions of Windows, did it happen to you in all three right after installation, when it should show the desktop for the first time, or when installing the nVidia drivers?
On the other hand, you mention that it doesn't happen under Linux, so a priori we rule out a hardware failure unless 3D acceleration is not activated in Ubuntu. If on the contrary the driver is activated, we directly rule out a component failure.
I could venture that, by performing a clean installation, with the OS that came with the computer and with a driver version closer to the date of purchase of the latter, the problem will not occur.
You will let us know.