In the book
Elements of the theory of functions and functional analysis
of Kolmogorov and Fomin, there is a proof of the following theorem,
Every compact operator $A$ on a Banach space $E$ has for arbitrary $\rho>0$ only a finite number of linearly independent eigenvectors which correspond to the eigenvalues whose absolute value are greater than $\rho$. The proof that it gives is later in the errata part of the book as wrong, but it doesn't say why and I don't know what is wrong with the following similar argument,
Assume that the theorem is false, that is, there exist a $\rho$ and a sequence $\{x_n\}$ of linearly independent vectors with $A x_n = \lambda_n x_n$ and $|\lambda_n|>\rho$. We can restrict $A$ to the span of this sequence, it is easy to check that it has a bounded inverse (if $x=a_1x_1+ \cdots +a_k x_k$ then $A^{-1}x=a_1 x_1/\lambda_1 + \cdots + a_kx_k/\lambda_k$ and $||A^{-1}|| \leq 1/\rho$) therefore on this space we have a compact operator with bounded inverse and consequently the identity map in this space is compact , arriving to a contradiction since the space is infinite dimensional.
The span of $\lbrace x_n \rbrace$ isn't obviously a Banach space (it's not clear why it's closed in $E$), and, as one consequence, it's not clear to me why the restriction of $A$ to this space should be "compact" (meaning, takes bounded sets to precompact sets).
To give a specific counterexample to show this is a real problem, let $H$ be a separable Hilbert space with an orthonormal Hilbert basis $\lbrace e_i \rbrace$, and let $B : H \to H$ be the operator defined by $B(e_k) = \tfrac{1}{k} e_k$. Then $B$ is compact by standard theorems.
Let $V \subset H$ be the finite span of the $e_i$ (that is, the space of finite linear combinations of the $e_i$). Then $B$ certainly fixes $V$. But the operator $B : V \to V$ does not take bounded sets to precompact sets; for instance, if $\mathcal{B}_1$ is the unit ball in $V$ then $B(\mathcal{B}_1)$ contains the Cauchy sequence $\lbrace u_n \rbrace$ defined by $$ u_n := \sum_{k=1}^N \frac{1}{k 2^k} e_k = B\Big( \sum_{k=1}^N \frac{1}{2^k} e_k \Big), $$ but this sequence obviously has no limit in $V$.
To try to fix this, one could in your proof replace the span of $\lbrace x_n \rbrace$ with its closure; but then one needs a better argument to show that $A$ is invertible with bounded inverse (which is, at least, not obvious to me at the moment).