I experienced the same issue, so I opened the thing up. This thing is incredibly difficult to disassemble with your hands. You need some kind of knife or letter opener to pry open the plastic case without breaking anything. Hearing a snap is a good sign.
The scroll wheel breaking isn't a software issue, but rather a physical issue. I found out that the wheel's axle is weakly connected to the mouse scrolling segment on the circuit board. The axle will start to strip off and get loose over periods of use.
Eventually, the wheel will just loosely spin in the socket and the mouse scrolling would break.
I suggest you find some sort of glue and stick the two parts together. I recommend epoxy, tacky glue, melted plastic, anything that would create a solid bondage and fill the empty spaces. Don't use Elmer's glue, rubber cement, or a hot glue gun. They are
too rubbery and flexible to use.