But it could be the cable between the two devices. Ideally you’d check the cable using a professional UTP cable tester to verify that the cable is made according to specs (also frequency response and crosstalk, these tend to become a problem with high-speed links). Even if cable is OK (e.g. cat7), the termination (in patch panel or wall jack) could be done in sub-standard way, and testing it with professional tester is the only way to find that out.