I’m sorry to hear about this error message that you are getting. This seems to be a connectivity issue so can try the following steps:
Close other applications that may be taking up your bandwidth.
Switch to a wired connection.
Restart your router and modem.
Restart your router and modem.
Troubleshoot your firewall.
Test your connection for packet loss or buffering.
Disable VPN or proxy services.
You can also try verifying the integrity of the game files in case that you have already check on your connectivity, steps to do it will be on the link below: