Also fuel pumps will lock up when hot sometimes. Then run when they cool down. It’s the fuel that cools them so when you shut down the engine the pump heat soaks
Then there is the open circuit relay that might be lazy when it’s hot.
This isn’t going to be simple.