It could be the port or the cable that plugs into the port is the real problem. If either one is the problem, then it could be possible that is what is causing the continuous activation / deactivation of the mouse driver.
Sadly, the only way to see if that is the problem is to physically disconnect the mousepad from the motherboard which means taking the laptop apart. It could also be the mousepad cable is loose.
There is no way to test if the port (I assume it's USB) the mousepad connects to is defective or not without bringing your laptop into a repair store. At least replacement mousepads are available, but you need to find one specific to your laptop model.