Quasi-optimal error estimates for the mean curvature flow with a forcing term