"EKF3 IMU1 MAG0 IN-FLIGHT YAW ALIGNMENT" makes auto yaw when takeoff

Yes, do recalibrate whenever you change the hardware.