Question Pc turns on then off and then on again

Mar 12, 2022
2
0
10
I built this pc in 2018 September.

HP case (https://support.hp.com/ca-en/document/c02669572)
HP Powersupply
Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz
Gigabyte B360M D3H Rev1
CORSAIR Vengeance LPX 8GB (1 x 8GB) DDR4 DRAM 2400MHz C16 (PC4-19200) Memory Kit - Black (CMK8GX4M1A2400C16)

It's been happening since Sep 2018. I contacted Gigabyte they asked me to replace the PS, I did with Thermaltake tr600cusae004326 but no difference. I replaced the ram with CORSAIR. Same issue.