Samsung washer trips breaker during spin
Hallways have typically AFCI protection to protect from fires in the wiring in the walls.  

Laundry rooms must have GFCI protection to protect humans from being electrocuted by faulty appliances.  

It's likely the laundry room also has AFCI protection, since circuits that need GFCI can also have fires from wiring in the walls. So from the purple button, we know that is a dual-mode AFCI+GFCI. 

So by moving the washer from the laundry room to the hallway, you removed GFCI protection.

And the problem went away! 

Well, no, actually, your ability to detect the problem went away.   Problem is still there. 

A GFCI problem means that the appliance is leaking electricity internally due to failing insulation or perhaps a bad capacitor.  If it wasn't for ground, it would be giving you a nasty shock (> 5 ma).  It's repairable.