sounds like the compressor is getting too hot. High head pressure can cause this. A quick test is to lay your hand on the compressor. It should not be too hot to keep your hand on it.
You may have a restriction of the freon in the condensor.
Also you can replace the relay with a hard start relay.
Ask your local Appliance parts store what a hard start relay is.
also Clean outside condensor coils.with a good coils cleaner.
You can pick that up at your Local Appliance parts store too.
If this was helpful please rate me.
Leo Ponder Appliance-Tyler,Texas[email protected]