new washer installed in my condo, and water is backing up and overflowing on the floor through the hose
Older washing machines required 1 1/2” pipe.  Newer machines drain water faster than older-style washers, so you may need to install a 2 inch (50mm) drain or get a washing machine that drains slower, like the old one.

I've seen this problem before.