Heat pump shuts off occasionally on hot day due to high pressure switch trips while heating hot water.

Check piping system for partially closed valves or trapped air. Make sure circulation pump is free of air and is running.