water overflowing

When in the wash cycle, the tub seems to spin too fast making the water
spill over the edge of the tub. I would like to know the cause of this issue.
Thank You

Drain is being restricted someplace along the line. If the water can’t drain out of the washer fast enough it will spin over the top.