I would first suggest you to sign out of your current account , then restart your PC and login to admin account or Microsoft account to check if that helps. If not then follow next method.
Press Windows key + X key.
Then open Command Prompt(admin).
Now type the following command and hit enter: slmgr – rearm.
Now restart your PC. Hope it helped!