Hi @Dominique
The code shown after several incorrect attempts is only a challenge phrase. Enter it exactly as displayed, but when Windows asks for the PIN afterward, select Sign-in options.
Choose the password/key icon and sign in using your Microsoft account password. Once signed in, open Settings > Accounts > Sign-in options > PIN (Windows Hello), select I forgot my PIN, and create a new one.
If I forgot my PIN appears directly below the PIN box, you can use that instead. This option is available for Microsoft accounts, but not local accounts.
If neither the password option nor I forgot my PIN is displayed, please confirm whether the Surface uses a Microsoft account or a local account, and which icons appear under Sign-in options.