motorola moto g – I can not access the screen lock type settings

I recently updated my Moto G5 to Android Oreo and since then my lock screen has automatically changed from pattern to slide …
When the phone starts, it still asks me to "enter its pattern to start the Android device", but after the device starts, the pattern never asks me again …

I tried to change the lock screen, but as soon as I click on change the type of lock, an error "configuration has stopped" appears.
I deleted the cache application settings, the data and the force stopped it, but it does not help.
I have deleted my security credentials
I put myself in safe mode to see if any application is causing the problem, nothing happened.

I do not want to restart my phone because it has a lot of data and taking a backup will be a big headache