A nearly optimal Galerkin projected residual finite element method for Helmholtz problem