Download the file removePhotoshopDocumentAncestors.zip below and unzip it.
When you access File > File Info for certain files in Photoshop, you observe one or more of the following issue symptoms:
When saving a file or saving updates to a smart object, the process gets stuck at 99%
Windows and macOS
This issue is caused by the 'photoshop:DocumentAncestors' entries in your file metadata.
This user-submitted script has been provided as-is by Adobe and not extensively tested. Use at your own risk.
Source: https://community.adobe.com/t5/photoshop/inflated-jpg-file-size-photoshop-document-ancestors-metadata/td-p/8055434?page=1#8511978 by iamwickedtall.
To fix this issue, use the script provided below to remove the excessive 'photoshop:DocumentAncestors' XMP entries.
Download the file removePhotoshopDocumentAncestors.zip below and unzip it.
Download
With the problematic file or smart object open to edit in Photoshop, drag-and-drop the removePhotoshopDocumentAncestors.jsx file script on the open document.
Save your file or smart object.
Sign in to your account