Brais - if moving the cable causes disconnections in DepthAI too, this points more to a cable / PoE / network stability issue than just OAK Viewer. A stable setup should not drop connection from small cable movement.
Since OAK Viewer detects the camera but often cannot open a pipeline, there may also be a viewer-side issue. I’d first try another Ethernet cable and, if possible, another PoE port/switch. If DepthAI works reliably after that but OAK Viewer still fails, then it is more likely an OAK Viewer issue.