I had the same problem with my e320.Replace the spark plug connectors (boots)

They are about 5 bucks each.
I replaced many expensive parts before finding this simple solution to the problem you are describing.
The boots become brittle with age and cause a missfire.