DCM Yaw inconsistent by 68 deg after battery change

I would try the in flight compass learning.
https://ardupilot.org/copter/docs/common-compass-setup-advanced.html
towards the bottom of that page, or:

I set mine as a switch on my transmitter (I didn’t see this method mentioned in the docs, but it is in the forum post). Then fly up high away from any sources of interference, flip the switch to learn the new offsets, and it just takes a minute of flying around for it to get a great calibration.