Hi,
The following should work, if your Windows is activated. If it does not activate let me know.
- Open Microsoft Store and select your profile icon in the top-right corner.
- Select Manage accounts and devices. This will open the Microsoft account webpage in your browser. Sign in if prompted.
- Locate your PC in the device list, select it, and choose Remove this device in the top-right corner.
- On your Windows PC, go to Settings > Accounts > Your info.
- Select Sign in with a local account instead and follow the on-screen instructions to create and set up a local account.
- Windows will sign you out once the process is complete. Sign back in using the newly created local account.
I look forward to hearing from you to get the results of the troubleshooting.