You should make sure that the water exhaust hose is still inserted into the drain pipe. You can also have a clog in the drain that gets stopped up and overflows. Washers have lots of gunk that can easily clog the line.
Good chance you have a hose fitting loose or a bad pump, the force of the water on the spin cycle can cause
these problems.
these problems.