You say the faulty motor trips the main breaker. Can you describe that breaker, is it MCB or RCBO or what and what are its current ratings? Can you determine if the tripping is due to overload or current imbalance? Is the supply three phase or single? What is the motor power rating?