This issue has been fixed in the latest release of InDesign 15.1.2
Please update to this version to get the fix.
Adobe InDesign team
An error occurred while saving the commentLisa commented
I got this error as well but when I hit the back arrow and renamed the file it worked