The fix for this issue is now available in the latest update of InDesign – that is, InDesign 15.0.2.
Please update your InDesign application to get this fix.
Adobe InDesign team
An error occurred while saving the commentTomas commented
I have found out the problem occurs mainly when I am working with tables, especially larger ones. When editing a table the undo ALWAYS fails.