GPIO IR remote stops working when Ethernet cable unplugged

Simple as that! Replaced the IR receiver with a TSOP38238 and the issue is resolved.

I notice that this chip explicitly highlights its electrical noise rejection benefits, so I think this is what did the trick: