This error may come about when adding a new matter when synced with a document app.


To resolve this issue:


Go to Setup > Firm Settings > Apps > Turn OFF the document app that you have turned on


Go back to main matter page > Click Add > Save the new matter.


After the matter is saved, go to Setup > Firm Settings > Apps > and Turn the document app back on.