|Is it a PC or laptop?|
Shut-downs can sometimes be due to overheating (fans, airways and heat sinks blocked with dust).
Set your Virtual Memory to Windows Managed defaults.
With the limited amount of information you supplied that is about all I can say.
Please come back and let us know the outcome.