Hi Shivam,
This issue looks to be caused by a recent Windows Update patch. It is all explained in this Microsoft Community posting:
The Metadata Staging URL (specified in a registry value): http://go.microsoft.com/fwlink/?LinkID=252669&clcid=0x409
Redirects to: https://devicemetadataservice.trafficmanager.net/dms/metadata.svc
The 2nd URL is broken and Microsoft needs to fix it as they have had to do many times in the past going all the way back to 2015.
Disabling Metadata Staging will have unexpected results on many areas of the Windows operating systems, not just when adding printers which are often taking as along as 10 min to finish getting themselves setup. I have been also noticing posts about system shutdowns taking longer too because of this.
Everyone who reads this, please contact Microsoft and demand that that 2nd URL gets fixed quickly or demand that they release a patch with the correct URL if they've recently made changes to the process. Thank you.