In my current internet condition, using a keep-alive trick can help, just like Openrouter. But Cursor will keep failing.
Nothing to do with your internet, vpn, that is a bug that has been around for a long time. Surprised it hasnt been fixed, way to many updates have been released.