The ESC Module is square and is mount on a plate above the passenger side valve cover near the throttle body.
I know you replaced EGR and the solenoid but if the code is being set, there could be an issue with EGR passage in the intake manifold or cylinder heads.
//2000CAYukon