I get error "Cannot read properties of undefined (reading 'id')"when saving changes to my dashboard in metabase

I'm encountering an error when attempting to save changes to my dashboard:
"Cannot read properties of undefined (reading 'id')".

Additionally, I'm unable to duplicate any dashboards. When I try, I receive a generic error message:
"An error occurred."

Could you please assist in resolving these issues?