Well, it would appear to be the USB interface, which is on the logic board. However the issue might be a power supply out of regulation causing malfunctions based on instantaneous loading. Either way (and given that the issue occurs under both Rockbox and the OF) it seems certain to be a hardware problem so you'll probably need to get a new logic board.