How old is the O2 sensor? Normally when you get the code, it's gone bad.

A working EGR should either kill the engine or make it run rough when an external vacuum source is applied.

Dave