I get the same issue on my old Jolla. I had to disable the password to use recovery mode factory reset.
Edit: I misunderstood the main message. It’s not exactly the same problem. On Jolla I tried a factory reset it only worked once a disabled password/security code.