Typically, the cause of that error is some program deleting files from the calibre temporary directory. Either track down the program and stop it doing that or set the CALIBRE_TEMP_DIR environment variable to get calibre to use a different temporary directory, which is hopefully not being cleaned, see
https://manual.calibre-ebook.com/cus...ment-variables