Open your Photoshop and go to the Performance tab and select Scratch Disk. Tick the checkbox to select a drive as the scratch disk or remove a drive. Click on OK to save the change and restart Photoshop.