How to Change the Scratch Disk Location in Photoshop
Photoshop uses a scratch disk to store temporary files when RAM is low. Changing this disk to a faster or roomier drive can improve performance and reduce disk space pressure. Follow these steps to pick a new scratch disk and apply the change.

Step-by-step instructions
1
Open Scratch Disk preferences
Open Photoshop.
Go to Edit → Preferences → Scratch Disks.
2
Choose a new scratch disk
In the Scratch Disks dialog, check the drive(s) you want Photoshop to use.
Ensure the selected drive has ample free space.
Click OK.
3
Restart Photoshop
Close Photoshop completely.
Reopen Photoshop for the new scratch disk setting to take effect.