On e you change the gimbal assy or mainboard
That needs professional calibration (not by drone ) to match the new gimbal data with coreboard
You can use python or dji official software for this .
For removing error 40011 & 40021
You will require calibration firmware