I believe this problem occurs when the PDFwrite engine cannot write files into the Windows temp/tmp folder. Do the obvious things: e.g. check that it exists and is writeable, that there is sufficent free space on the drive where it is located, and try deleting any temporary lock files (created by the PDFwrite engine) in that folder and reboot.