The drive motor's speed is detected by the motor RPS. Check the wire harness connections between the main electronic control board and the RPS when you unplug the washer. The wire harness connections will need to be replaced if they are ok.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.