I had the same problem. Find out how large is your paging file size.
Control panel->System->Advanced system settings->Advanced tab->Settings->Advanced->Change
Mine was set to 1GB. I set it to automatic(which was 8GB). That fixed it for me.
Paging file is a temporary file windows creates on your HDD(orSSD) that holds things that do not fit on your ram.