What car have you got? 520d? Could it be the metal pipe from the egr cooler to the exhaust manifold? This split on my dad's car recently and had the exact same symptoms.

Like the one shown here: https://www.x8r.co.uk/over/bmwshaped...d-up-fault.jpg