1. Reduce the number of historical states in the editing, preferences and performance windows.
2. Reduce the amount of GPU memory used in Photoshop. You can find this setting in Edit, Preferences and Performance.
3. Reduce or close the automatic storage time of Photoshop files. You can adjust file storage options through editing, preferences and file handling.