Reverse both ends of the ribbon cables and see if the problem changes.
Or you could try moving the cable around and tugging on the cable near the connectors to see if that causes the problem.
Inspect the solder joints on the connector's male pins.
Reseat any socketed IC's relating to the DMD.