its all good I had a professional look at it and they said the CPU is most likely defective and should be replaced. my specs are gpu: GEFORCE GTX 1660 SUPER VENTUS XS OC
mb: b450 tomahawk max
ram: Corsair Vengeance LPX 16GB (2x8GB) DDR4 DRAM 3200MHz
cooler was Cooler Master Hyper 212 EVO - CPU Cooler with 120mm PWM Fan
ssd: WD Blue 3D NAND 1TB Internal PC SSD
They gave a list of things they did,
Set all fans to full speed in BIOS to see if it will overheat. it still restarted
there was no BSoD code(not sure what that is)
disabled third party service still rebooted even in safe mode but it took longer in it.
weirdly, it does not reboot while in the BIOS menu
cleaned, rolled backed all gpu drivers and still does it.
put a new gpu and tried a new power supply no use.
they then concluded that the issue is most likely my CPU