Can't save admin configuration for users-permissions plugin

I’ve tried to start with a clean database and the error has gone!

Now there’s a question how did the wrong settings emerged and how to fix the production db.