A phenomena is happening called “water seeks its own level”
When a machine discharges water faster then the existing drain can take the volume the waste water has to go some place.
What you can try to do is call a licensed a drain cleaner and have them water jet these lines to guarantee you full flow of the piping diameter you have by removing old debris build up on the internal piping walls.
Hopefully your existing drain/waste soil lines are not plastic garbage back pitched and this can also cause a major problem.
Best bet try the water jetting 1st then see what happens.
Good luck