You need to ensure that enough free space exists in your spool directory, and any user disk quotas are large enough, so that the spool file can be copied. This means at least twice the spool file size may be needed. You can also specify a separate directory for temporary files by using the –enable-temp-drop-dir=path option with ./configure or adding set temp-dir = path to a configuration file.