Direct 12v goes thru power supply, maybe bad relay contacts when switching between 12v direct and power supply 12v.
Measure voltage on power supply, terminals V+ (positive) COM (negative) , this after source relay.
Or terminals on Compressor driver: Blue- positive, Brown - negative, this is the...