Solution is apparently here:
https://www.forum.cncdrive.com/viewtopic.php?f=3&t=4635&start=30
From User Grey: "When the pendant is shutting down it obviously saves the location and when it wakes up it loads it. If you interrupt the pendant while it is shutting down it is in some intermediate state where it has not saved the current location and loads the old location and tries to jump to it but only applies the jump to the currently selected axis. For example if you start the pendant at 0, 0, 0 and move it to 1,1,1 then interrupt while it is shutting down it will jump -3 on the currently selected axis so assuming x is selected the spindle will move to -2, 1, 1."
CNC Drive Reply: "Yes, that was exactly the problem. The issue was that we could not reproduce it for a long time, but a few weeks ago we found a way to reproduce it and already fixed the problem.
So, this will work fine in UCCNC development version 1.2118."
So apparently fixed with UCCNC V1.2118 in Apr 2025. As at May 2025 (time of this post), V1.2118 is the Dev version which can be downloaded from here:
https://cncdrive.com/UCCNC.html