If its flipping than there can be two reason, maybe you really have a faulty DJI ESC or double triple quadruoble check that you wired the esc correctly, motor spin directio, prop mounting, IMU orientation etc. and didnt change anything in you settings by accident after the ESC change.
Its just...