Im about to the point of abandoing photoshop for all my work. I have had numerous occasions where photoshop freezes at some point while saving and then corrupts my file. I've triend multiple versions of photoshop and it happens with all of them. I have no clue what is going on but this is beyond infuriating. I'm on OSX if that narrows it down for anyone.
We're sorry about the trouble with Photoshop. Would you mind sharing the version of Photoshop you're using along with your computers macOS version? Does this happen while saving to any location or do you always save to an external drive or a network location?
If you're using macOS Catalina or macOS Big Sur, please go to the System Preferences for your Mac, then Security and Privacy, then select the Privacy tab. Then select Accessibility from the list to the left & check if Photoshop is added to the list with a check mark in front of it. If Photoshop is not a part of the list, please add it by unlocking the window first using the lock at the bottom left, then clicking the + icon & navigating to the Applications folder. Also, grant permissions to Photoshop under Full disk access located in the same list as Accessibility. Once done, restart the Mac & check if it helps.