Get an EVO II and dump DJI.
No joke.
I had similar problems and I got into the quad business to fly not to endlessly diagnose a poorly manufactured quad copter.
I have had five P4Ps. Not one of them flew in a straight line. I don't care how many IMU, Compass, calibrations, endless...