The fix of the issue is now available in the latest InDesign 2022(v18.104.22.168). We recommend you upgrade to the latest version for the fix.
If you are unable to see the update, go to the Creative Cloud application and click on the context menu on the top right and click on Check for App Updates.
Adobe InDesign Team
An error occurred while saving the commentAnonymous commented
It doesn't seem like that issue has been fixed. I'm using the current version of InDesign and the issue is still happening! Please solve.