If it were me I would start replacing hardware if you have any spare parts laying around, usually computers restart when the temperature gets too high or if there is a power failure. So check the fan and the power supply. You could make sure the clips on the heat sink are on tight and not cracked. Make sure the fan in the power supply is running. Are there any beeps?