Whirlpool Cabrio F51 error code

Please make sure to click on General above and select the correct appliance type first.

Brand: Whirlpool
Model Number: WTW6400SW0
Main Symptom: Error Code F51
**What happens & when: After loading clothes and selecting wash cycle, unit starts filling water and then stops. Shortly after, getting a F51 error code. If left alone, the code clears out on it’s own and then tries to fill a bit more water, then back to F51.

Afterward, the lid remains locked even after turning the unit off. Holding the cancel button for 5 seconds sometimes releaes the lock. I unplugged the washer and left unplugged overnight and tried again this morning. Still getting same failure process.**

Error Code (if any): F51
Parts or tests already tried:
Photos / video link:

The F51 error code would be caused by a faulty RPS sensor. Unfortunately, this has been discontinued by the manufacturer with no suitable replacement available.

https://www.appliancepartspros.com/whirlpool-kit-w10183157-ap4327312.html