Great question — answering as the UphillTech team:
When there's an unexpected voltage potential showing up between two points there's almost certainly an unexpected current flowing somewhere too. It's not easy to isolate all the conductors of a compressor on account of the refrigerant lines also acting as huge, hollow, copper wires. But we can use a clamp-on ammeter to check for currents that might be flowing on either refrigerant line. A meter with resolution in the milliamp or microamp range is likely needed. We can use the same ammeter to look for stray currents in the intentional supply conductors. (Your post didn't state it but I have inferred you're in North America and and working with split-phase 240 volt power.) The compressor...
Full answer by Greg Hill: https://diy.stackexchange.com/a/332084 (CC BY-SA 4.0).
Need it done for your business? UphillTech.