Wish I knew, I can only suggest:
1) get a different partition (maybe on a usb hard drive or any hard drive in your computer that is working) and ask photorec to store the files there.
2) create a swap partition as well.