Whirlpool WTW5000DW0 knocking and clothes soaked

During spin cycle, the machine will accelerate rapidly and begin knocking the internal walls of the washer and moving it a couple inches, will complete its spin cycle but the clothes inside will be completely soaked. What parts would I have to replace to fix this?

Correction on the model #: wtw5000dw1