On my PC, I was facing this error, I asked Microsoft Support to help me out but they weren't able to solve this, The problem is in my Location Settings, In which I can't change any of my Settings.
After some time I got the solution that I thought will help people in trouble with the same issues.
Step 1:- Press Windows Logo Key + R and type REGEDIT
Step 2:- Navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\LocationAndSensors or If you can't find this, navigate to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows and right-click on Windows, and select NEW KEY. Name that key as "LocationAndSensors" Right-click on the key you just created and select New and then DWORD and then name it as "DisableLocation".
Step 3:- Right-click on DisableLocation and then click on Modify, change its value to 0
Step 4:- In Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows, right-click and select New and then QWORD [Note:- If you use 32-bit OS, select DWORD (32-bit value)]
Step 5:- Rename it as "AllowSearchToUseLocation" and then right-click on it and select Modify, change its value to 1
Step 6:- Restart your computer
Hope this will help, If YES, please do me a favor by subscribing to my channel on YouTube named "FAZU TECHNOLOGIES"