I'm with Robert on this one, I would bet the generator is sucking air into the through hull, losing raw water cooling flow and then tripping the overheat sensor or raw water pressure sensor. Could be a bad impeller but it could also be the nature of the beast depending on the generator and where the raw water through-hull is located.