Did you have a Google account on the phone before you started the installation, if yes I might have bad news for you…
Could you run this command and then try to enable OEM unlocking:
If you get FRP in the logs, then factory reset protection go triggered and that’s what causes settings to crash.