Without knowing the error codes, that doesn't give much. If a trace or circuit is broken somewhere and the controller doesn't get the data it should, it might output error 43 for instance. Since it outputs an error odds are that the software is OK and that it is a hardware issue. I don't think it is very common for their software to get corrupted.
I would check for obvious damage, burn marks, swollen capacitors, cables and joints. I would also check the cable. If they get bent around a lot the wires inside can cause intermittent connections. I had that in a device once and it measured OK in a multimeter but when bent back and forth it would occasional break the circuit.
Sidenote: Why do I keep coming across people with broken Razer mice? I am looking for some high quality scroll wheels. Why can't high quality mice break down for me to take some parts from them? Oh, right, nevermind... Contradiction in terms and whatnot