The connector on the yellow phase wire was weak and had broken off on the side connected to the motor, so I had glued the connector back together. The gluing was successful, but this was likely a stupid thing to do, because the glue didn't hold with current passing through the wire.
Luckily, I...