hans5438 :
Thx anotherdrew, InvalidError, caledbwlch for helping me out, although I still don't know what is causing the problem (perhaps the wires in the wall?), but I will just consider using a longer cable.
If the cable going through walls is the one your PC connects to your router to, you could try checking your LAN adapter's error count by opening perfmon.msc, click the performance monitor, click the + icon to add a value to monitor, expand the Network Adapter category and pick Receive Error, pick your LAN adapter in the list of instances and add that counter.
Ideally, that counter should be low/zero. If it rises significantly during speedtests, then you have a signal integrity issue either from faulty equipment or wiring.