If you're unsure which drive is used as a scratch disk, open Photoshop and go to Edit > Preferences >Scratch disks. Once you're into the Preferences menu, confirm which storage drives serve as a scratch disk and make sure it has at least 40 GB of free space.