AHRS orientation

I have mounted my pixhawk 2.4.8 FC according to the s550 frame fc heading but when I give thrust my drone will flip. and when I check the .bin files it says massive yaw imbalance. and I can clearly see three of my motors don’t get enough thrust please help me to fix this

Check your motor order and rotation.