Did you take note of the fault codes or ask for a record of them from the mechanic? Your description does not sound like a compressor related fault. Did you ask what fault finding was undertaken? There’s many examples of intermittent faults at the various linked threads, both here and Disco3, that are fuel pump related whether HP or LP. It could be a sensor too but without some kind of troubleshooting method it’s just guessing.
Scott

