control panel > system > advanced > perf options > virtual memory > change
set max registry size there.
but this is very odd error. for a system with lots and lots apps installed, 50mb should be enough. unless you have a win2k server as DC with thousands of users then sam will grow huge.