Because it is the automatic restart fault caused by the installation of memory, the compatibility problem of memory should be considered.
When two or more DIMMs are installed, the DIMMs are incompatible with each other. For example, if DIMMs of different capacities and speeds are mixed, or if the manufacturer and brand of DIMMs of the same capacity and speed are different, and the heat dissipation is poor, blue screen of death, or restart may occur.
You are advised to use a single memory module to check whether the restart phenomenon disappears.
It is possible that there is a fault in the memory, causing the computer to restart frequently. Try replacing one.