There's a VERY recent thread, 'midi software problem' that discusses almost exactly the same problem.
I suggest that you look through this other thread, and if it is the same problem then follow the same advice, which appears to have totally solved the problem.
The problem seems to be the connector/cable. The faulty device CAN be fixed, but it's a camplicated fix and may be more trouble than it's worth.
Geoff