Study the location the module is mounted. If you can find a location where it would be cooler, move it via an adapter pigtail to give you that ability speciall the new one. If not possible, shield it from the heat generators, but do make sure the module itself gets cooling air flow. In one of my rigs I moved it and the unreliable ecm became reliable. I then went further and added some aluminum cooling fins on the case to further give it better cooling! It was mounted very close to the exhaust manifold when the buckets of bolts RV folks moved it from where the manufacturer had placed it!
ECMs are specific to engine ....
https://www.carparts.com/engine-cont.../ram-2500/2000