Go to
"Lock screen and security" -> "Other security settings" -> "Device administrators"
Disable all (temporarily) and go back to "Screen lock type" and choose preferd type
Go to
"Lock screen and security" -> "Other security settings" -> "Device administrators"
Re-enable according to previous...