Well if the problem swaps axis when you swap the hardware it has to be the hardware rather than the software. Try swapping individual components on each axis until you find the culprit, ie swap a drive over, swap a motor over etc.
Hood
PS are all axis using same motors,drives,ballscrews etc, if not you will have to remember and retune when you swap axis hardware.