Perturbed Cauchy-Riemann equation with jumping discontinuity and the energy identity