This is most likely because of a momentary interruption to your WiFi signal. Another reason might be that the VPN you’re using is limiting the amount of data you can use and disconnecting you. So, use a VPN that offers unlimited bandwidth and a reliable server network to avoid any annoying dropouts.