I used to have a washing machine that required replacing the switch/controller board about once a year. It may have been that moisture was somehow getting into the circuits.
Finally got rid of that particular model. It's replacement .... a different brand ... has lasted 15 or 20 years.
As far as something to try .... obtain a spray can of electrical contact cleaner, remove the controller board, and liberally spray all of the plugs and connection points, including whatever looks like it may be a ground connection. ... Allow to dry a few minutes and then reassemble.
If you see any wires that are connected to the metal frame, you might want to also disassemble the connection points, thoroughly clean the contact surfaces, and then reassemble. These would be ground wires, and would be essential to proper electrical operation. Any rust or oxidation at their end terminals, where they are connected, might affect the washer operation.
... Suggest getting a can of the actual electrical contact cleaner spray, rather than just something like WD-40.