Very common issue w/Sterns. There are two opto boards in the trough and when those get iffy it can cause all sorts of weird intermittent behavior, including what you describe.
Reseating the connectors usually solves the issue, at least in the short term. Board repair (reflowing solder) or replacement (they’re pretty cheap) may be necessary in the future.