The washer can't drain too much sudsy water. Check the large item filter in the drain pump if there is a problem. The drain pump should be replaced if it's malfunctioning.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.