If cleaning doesn't correct it then swap the opto boards with each other - left with right and right with left and see if the problem moves with the board swap (upper right flipper instead of upper left flipper error).
This will tell you whether the fault lies with the opto board itself or further up the line (connector problems, crossed/broken wire).