Virtual Memory is your swap file. Try booting Windows into Safe Mode and adjust your Swap File size.
When you say "memory test failed", do you mean during the initial boot process? When the bios is running the memtest? hmmmm. That's not good. Have you tried the ram in a different slot on the motherboard?