I haven't had opportunity to try myself just yet, but one crucial aspect of using an electric field is that periodic boundary conditions no longer apply in the perpendicular direction. So, make sure to adjust to Neumann boundary conditions. Also, you don't need the extra space in the unit cell above and below the metal, the metal will screen all fields completely, so this vacuum space will just waste memory and time.