There’s a known issue of devices disconnecting randomly.
Here’s the related thread.
Unfortunately no solution for now. Although i recently noticed that touchOSC bridge didn’t disconnect for 24h so maybe we could find a workaround using virtual ports? Still need some testing.