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

To resolve this issue:

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

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

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