This error can happen when a colon : has been used in the name of the custom field.

You can remove the colon from a custom field using the following steps:
  1. Navigate to Core > Settings > General Settings > Custom Fields.
  2. Click the Edit pencil next to the name of a custom field.
  3. Remove any colons from the field name.
  4. Click Save.