ECU driving me to drink

Very muc

Very much the trouble associate with temperature. The 1st ecu seem fine, the problem could be weak fuel supply at hot temperature, or spark cut off because high temp changing sensor structure.

Do this. Put the 1st ecu back, drive it until hot. Turn off and start. When it won't run spray starting fluid through intake. If if run: the problem is fuel supply. If if won't run: no spark. At this step, check crankshaft and camshaft sensors. Possibly your engine temperature higher than factory expected operating temperature, that distort crank/cam sensors (or whatever sensor relate to ignition )

Only guessing like what I would do if I have the same car. I'm not familiar with 5.7 hemi.

when it wont start when its hot , its because the fuel pump circuit doesn't fire . Normally when the key is moved to the on position , the fuel pump fires and the throttle body cycles.
None of this happens with the first ecu when it overheats . If I spray it with something to cool it down or even sit an ice block on it , it runs normally.