It’s not the wiring, there is a small black connector on the compressor which is for the thermal switch. If you’re able to change it without breaking then do that but it might actually be doing its job and your compressor is overheating. You can actually bypass it by joining the 2 wires together...