What version of wpilib/network tables are you running? There have been numerous fixes this year some of which fox disconnections. You should be running 2024.4.1 or later.
As Joe said, make sure you upgrade to 2023.4.1 or later.
It’s not unusual to see multiple client connections from the same client and then the other side disconnect; what’s happening is that the NT client tries to connect a bunch of different ways in parallel; once one succeeds, it cancels/disconnects the others.