1996 Ram 1500 5.9 4x4 surging?

I got the oem sensor and it was dying at stop lights before the sensor was replaced and died on the freeway once too.