try mo stress pc mo to find out what cause it
try furmark for stress gpu
try prime95 for stress cpu
do a memtest
do a sfc/scan
make sure your hdd isnt making any noise(if it have a knock sound ) immediately backup your files its a failing hdd
do a virus scan windows defender works
and the nuclear option
reformat your pc
install new OS