This is a common request, and the common solution is to add a G10 L20 command before any "reset" move, like this:
G10 L20 P#5220 A[#5423 MOD 360]
G0 A0.
That changes the WCS offset of the rotary by a suitable number of whole rotations, so that it's within one rotation of A0, without actually moving the rotary axis.
There is more discussion, and some proposed patches, at
github.com/LinuxCNC/linuxcnc/issues/3902