A/C compressor stops on 2001 Volkswagen Cabrio

Would anyone know why the compressor on the a/c stops when engine gets hot. Tried charging it and it shuts off too.

Get Your Car Fixed at a RepairPal Certified Shop.
We certify shops based on expertise, quality work, and verified customer reviews
1 answer
poss restriction in a/c freon flow causing high pressure switch to shut system down as to prevent further damage. seek a diag