Hi, good day!
- Can you check if your date and time are set correctly?
Please let me know if you have tried the method below.
- Make sure your account is not connected to school/work.
- Make sure to install all available and pending windows updates for your device.
- Reset the Microsoft Store cache Press the Windows Logo Key + R to open the Run dialog box, type wsreset.exe and then select OK. Note: A blank Command Prompt window will open, and after about ten seconds the window will close, and Microsoft Store will open automatically.
After that, please check the support article in the link below on How to Switch out of S mode.
Windows 10 and Windows 11 in S mode FAQ
I look forward to receiving your update and I'm willing to collaborate with you till we resolve the issue. Do keep me informed by clicking "Add comment" below.