Can you disable the automatic reboot when a GX device loses internet?

Yes, rebooting when there is no internet is an optional feature, configured in the VRM menu on the GX.

We have many thousands of GX devices on boats at sea that go long times without internet.