Acer Predator Helios 300 Freezing on bootup

I am dealing with an Acer Predator Helios 300 i7 9th gen with 166oTi gpu , the laptop was working fine then it suddenly went to blue screen. Booting it up again it starts fine as soon as windows starts loading it freezes and goes to bluescreen again. I have replaced RAMs, SSDs, Battery, charger, windows, even tried with Ubuntu but still freezes as soon as it loads. Going to bios menu the laptop is okay as long as it is left on. I thought this might be the nvidia graphics issue, I cut power going to the psu of the gpu but this did not solve the problem, has anyone ever seen a problem like this, what might be the issue?