OK, so you've definitely determined that it's not the cable, since the problem persists with the PS4's cable connected to the PC. And it's probably not the router, since it's happening in multiple ports (& again, not affecting the PS4).
Which leaves a) the driver, b) malware on the PC, or (more likely) c) the Ethernet port itself.
To see if it's a driver issue:
-- If it's an onboard port, go to the motherboard manufacturer's website & download the latest NIC/Ethernet driver. If it's an add-on board, go to the manufacturer's website to get the driver.
-- Go into Device Manager, delete the Ethernet Adapter, & then have it rescan for hardware.
-- When it prompts for the driver, use the updated driver you downloaded.
If it works, it was the driver. If it doesn't, it's something else. Do standard scans & tests for malware, including MalwareBytes & other solutions. A quick way to test, however, is to boot in "Safe Mode with Networking", as 99% of malware won't come into play in Safe Mode. If the problem goes away in Safe Mode, you have malware; if it's still happening, it's not malware.
Which leaves the hardware itself. If it's built into the motherboard, and you're still within the normal warranty, you can always RMA it, but you'll be without a board while you're waiting. The alternative (& the only choice if it's not built into the board) is to pick up a fairly cheap PCI/PCIe Ethernet adapter.