230 Compressor sometimes turns dead

Good evening together, My SLK is doing wonderful things. Usually it starts like one, but sometimes it dies while trying to start. That means I try to start it and it is like the battery is empty, only then nothing works,quasi, as the battery would not be connected anymore. There is no light anymore and no ZEntral-rigging. Mostly it only jumps again when the battery is stuck off. The error occurs mainly with warm motor. I recently installed an oil stop cable and had to replace the original plug on the wire harness. Connected are the cables with solder connectors. Does anyone else have any idea? Mercedes R170 230K automatic, Built 97 with 150k km