Can't set Screen lock

Hello

Just installed latest iode on my Pixel 7. Everything went smooth and most things are working fine. But there is one thing that is not working, which is a deal breaker. I can’t set a screen lock on the phone. It defaulted to “Swipe” and I can change it to “none”. But if if I try to change it to a pin code, password or pattern I get an error message saying “Screen lock was already changed. Try again with the new screen lock”, and then it goes back to none or swipe.

I have never successfully set a screen lock, and only tried setting one code combination so I don’t know what “the new screen lock” means.

Am I missing something? Someone has a clue if I can get around it?

Best regards
/Mossberg