Hi Salil-
I'm Kevin B. Windows user like you. I do apologize for the inconvenience, let me help you sort things out.
Kindly run network troubleshooter.
Go to settings > update and security.
Click troubleshoot.
Click internet connections.
Click run the troubleshooter.
See if the issue persists.
If so, kindly reset your network.
On your settings go to network and internet
Click on network reset.
It will load and takes time to finish.
Wait for it to finish and restart your machine.
Connect to your WiFi again and see if the issue persists.
Please let me know what will happen. Hope this will help and have a blessed day!
Thanks,
Kevin B.
Independent Advisor