Those fuel pumps are designed to crack at a specific pressure, maybe when its getting hot its cracking at a lower pressure and not pumping the fuel at the right pressure for your engine. I'd try replacing the fuel pump if all the wiring connections are good. Test the pump to make sure its getting power when its not pumping fuel.