Hi,
Please try this way:
Disable and enable the device WAN Miniport (IP) in Device Manager (go to Start – Run – devmgmt.msc – Enter)
Under Network Adapters select the WAN Miniport (IP) and press the Disable device button. After it has been disabled press the Enable device button
Here's the link for reference:
https://www.peppercrew.nl/index.php/2019/02/after-disconnecting-vpn-no-network-connection-and-ping-returns-no-resources/
Best regards
Cherry