The part is just a retainer. It secures either a dispenser hose or wiring. It probably came of when you took the top off. It will not cause a problem other than you might hear a tapping noise from the hose or wiring that it held in place. If your washer isn’t draining fast enough the tub won’t reach desired speed. I would take the pump off and inspect the hoses to it. Look for lint buildup, coins, etc…. Do this with the washer unplugged. While you have the pump off, inspect the impeller, and make sure nothing is clogged or stuck in the pump. If you have a multimeter you can check the windings on the pump motor. Turn the tub with your hand, does it spin freely or do you hear it dragging on something. You might have a piece of clothing stuck between the inner and out tubs. You’ll have to fish around with a piece of wire to get it out. Check all hoses for a restriction. If all are clear reassemble the washer and put it on a spin only or drain n spin cycle. Still have the error, find the tech sheet inside the washer. It will have the instruction on how to go into diagnostics and recalibrate the motor speed. I doubt this is the issue. My money is on a failing my pump or something not allowing the washer to drain properly, a restriction.
The instructions on the tech sheet are step by step easy to read. Recalibration got the motor speed is usually don after the motor or motor board is replaced, although, I have had to recalibrate it once due to a slow spin. Never understood how it lost it calibration. Good luck.