Simply follow the steps below
Check if you are connected to a stable network or not. Disable and reconnect the network.
Try restarting your router.
Try switching to a different network and check again.