You need to enlarge the size of your “virtual memory/swap file”. So, do the following.
Right click 'My Computer' and choose 'Properties'.
In the 'System Properties' window,
click the 'Advanced' tab.
In the 'Performance Options' window, click 'Advanced'.
Under 'Virtual memory',
Increase the size of the 'Paging file' so that it is at least twice the size of your RAM.