I would replace the part between the coils and the plug beneath.
I doubt the EGR would be your miss unless it is applied at idle. The switchover valve is usually next to the switchover valve for secondary air. The secondary air switchover is powered only when cold and the EGR is powered always after warm-up.
Bosch Master, ASE Master, L1
33 years MB technician