Clearing didn't help.
I get same error while trying to:
- access Screen Lock, Fingerprint Lock, Face unlock
- add a lock to second space
- create a backup
And probably more but I don't know that yet.
EDIT: I managed to fix it.
I had to remove /data/system/locksettings.db in recovery.
Then when...