Specifying your own directory for temporary files can help you avoid the problem.
In interactive use on the login nodes, the default TMPDIR is /glade/scratch/$USER. You can change that by running the commands shown below on your command line when you log in or by setting the TMPDIR variable in your start file.
For batch use, CISL recommends setting TMPDIR within each batch script for all batch jobs. Include these commands as the first two executable lines of your batch script after the #PBS directives or #SBATCH directives.