Why does engine runs good till hot, then cuts off wont start till cooled down on 1995 Chevrolet S10

have had the head replaced

Asked by for the 1995 Chevrolet S10
My eng does too. the fuel pump relay gets hot and kicks out. no fuel. but what makes the relay kick out, maybe the pump is laboring causeing an over load. ????