You can go to Windows settings- Account- Your Info- Click the Sign in with a local account instead option:
After confirming that the account is set up to use a Microsoft account, click Sign in with a local account instead.
Please refer to this support article: windows-10-switch-your-device-to-a-local-account