Any one encountered this issue? in Android emulator? Can't find Service : Settings

I have been getting this below error sporadically, has any one encountered this issue? any solution that you could offer?

adb.exe -P 5037 -s emulator-5554 shell ‘settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy’’ exited with code 20
Can’t find Service : Settings

is there any capability that we can use to suppress this error? Because I am able to see the emulator running even after this error