Are they both plugged into the same physical switch or different switches ?
I’m guessing they are on different switches in different rooms in the building ?
You could try dropping the ethernet port speed to 100mbit as described here in case it is an issue with ethernet flow control: