According to Gauss law of electrostatics, the electric flux through an enclosed surface is given by ϕE=ϵ0qenc
From the formula of electric flux, ϕ=E⋅ds
Also, the relation between electric field and electric potential is given by V=E⋅dr
So, the formula ∣E∣=ϵ0∣A∣qenc is only applicable when the Gaussian surface is an equipotential surface and ∣E∣ is constant on the surface.