Can this fix be applied to the trackball issues as well? I have a happ usb trackball....
Maybe, if everything else is working correctly. However, quite a few people have posted here with problems with happs usb TBs, that were the fault of the USB sensor boards not being able to keep up with the speed.

Quick overview of TB backspin: cause can be in many different places.
Ball or rollers might slip,
roller bearings might need greasing or breaking in to go that fast,
encoder wheel can be dirty or missing teeth,
optical sensor can be dirty or broken,
circuit board can be shorted or broken,
power can be inconsistent,
chip that converts raw sensor signal to USB might be too slow or broken/burnt out,
protocol between TB and computer can be too slow
([cough]serial port[/cough]),
computer can be too slow,
OS can be too slow,
API between OS and app (mame) can be too slow or too small mac values,
app might be too slow, and mame might be sending too high values to the game ROM.
With the TT2 of OP, the problem was the last one.
With happ USB TB boards, most often it seems to be fixed by replacing the boards.

There's a "new version" of the USB board that "works better", but there doesn't seem a way to see the difference between the two by looking it the board or part number. You can try to talk to happs about replacing the boards in kind, or... buy two arcade boards and an optipac/optiwiz.