I'm using a freeware app, Mouse Jiggler, to prevent my VPN from going offline, particularly while using certain other apps. Feel free to download it. It's a very small file, virus-free. It's memory footprint on my Windows 10 laptop is 2.9 Mb.
You might prefer MoveMouse, another freeware program that accomplishes the same thing. Download it here.