Consider a closed loop wire with current flowing through it:
Consider along the wire a battery $V$, a resistance $R$ and a capacitor $C$.
We know the integral form of Faraday's law:
$$\oint\limits_{\partial S} \vec E\cdot d\vec l = -\frac {d\Phi_B}{dt}=-\frac d {dt} \int\limits_S \vec B\cdot d\vec A$$
Because of the capacitor, the current through the wire will exponentially decay, therefore the magnetic field $B$ will also decay, therefore the right side of Faraday's law won't be 0.
However, in his lecture https://www.youtube.com/watch?v=6w3SzI_s5Sg&list=PLyQSN7X0ro2314mKyUiOILaOC2hk6Pc3j&index=26 at 5.15 Walter Lewin says that $$\oint\vec E\cdot d\vec l=0$$
What am I doing wrong?