First, we will argue that W=\frac{\mathrm{scal}}{4}+{\mathrm{i}}B\cdot is relatively compact to H_A, in other words W(H_A+1)^{-1} is a compact operator on L^2. The argument is mainly analogous to [RS4, Example 6, p. 117 and Problem 41, p. 369] but will be given here for completeness. We approximate W=\frac{\mathrm{scal}}{4}+{\mathrm{i}}B\cdot\colon L^2\to L^2, by W_n = \chi_{B_n(p)} W where \chi_{B_n(p)} is the characteristic function of the geodesic ball B_n(p)\subset M. Since the scalar curvature and the magnetic field B tend to zero at infinity, \lim_{n\to \infty} \|W- W_n\| \to 0 in the operator norm. Let now \phi_k be a bounded sequence in \operatorname{dom} H_A=\{\phi\in L^2\mid H_A\phi\in L^2\} equipped with the graph norm. Then, \phi_k is locally also bounded in H^1 and hence locally strongly converges in L^2 to some \phi (after possibly taking a subsequence). In particular, W_n\phi_k converges to W_n \phi=\chi_{B_n(p)} W \phi in L^2. This implies that W_n is compact as an operator from \operatorname{dom}H_A (equipped with the graph norm) to L^2 and hence, that W_n(H_A+1)^{-1} is compact. Since \lim_{n\to \infty} \|W- W_n\| \to 0, then also W(H_A+1)^{-1} is compact. By [RS4, Corollary 2, p. 113], we get \sigma_{\text{ess}} (D_A^*D_A) = \sigma_{\text{ess}} (H_A).
Next, we want to show that [0, \infty)\subset \sigma_{\text{ess}} (H_A). As in [CFKS, Step 3, p. 117], we want to use the following fact. Let T\geq 0 be a self-adjoint operator on a Hilbert space H. Whenever there exists an orthonormal sequence \psi_n in H which converges weakly to zero and satisfies \bigl\Vert (T+1)^{-1}(T-\lambda)\psi_n\bigr\Vert\to 0 then \lambda\in \sigma_{\text{ess}}(T).
Before we find the test functions \psi_n, we first exploit the condition that the magnetic field vanishes at infinity.
For any p \in M we define |p|=|\varphi(p)|. Since |B|\to 0, there is a sequence of points q_n\in M with |q_n|\to \infty and \sup_{x\in B_{2n}(q_n)} |B|\leq \frac{1}{n^2}. By taking a subsequence, we may choose q_n such that |q_n|> 6n+R_o.
Since the spinor bundle is trivial on M\setminus K, we can choose a spinor \Phi that is constant with norm 1 on M\setminus K. We note that by our assumptions on the decay of the metric, and hence for the Christoffel symbols corresponding to our coordinates, we get
\bigl| {\nabla}^S \Phi\bigr|(x)=\mathcal{O}\bigl(|x|^{-(\tau+1)}\bigr)\qquad \text{and}\qquad\bigl|\bigl(\nabla^S\bigr)^*\nabla^S \Phi\bigr|(x)= \mathcal{O}\bigl(|x|^{-(\tau+2)}\bigr)
for |x|\to \infty (see [LM, Section 4] for the spinorial connection \nabla^S in local coordinates).
Now let g_n\colon M\to [0,1] be a radial (with respect to q_n) smooth cut-off function which is constant on B_{n}(q_n), 0 on M\setminus B_{2n}(q_n) and satisfies | \nabla g_n| \leq \frac{2}{n} and |\Delta g_n| \leq \frac{4}{n}.
So far we know that B is small on the support of g_n, but the term A also appears in H_A on its own. Next we choose another vector potential A_n corresponding to the same magnetic field B which is small on B_{n}(q_n).
In local coordinates, we have B=B_{\mu\nu} {\rm d}x^\mu \wedge {\rm d}x^\nu with B_{\mu\nu}=-B_{\nu\mu}. Then 0={\rm d}^2A={\rm d}B= \partial_\kappa B_{\mu\nu} {\rm d}x^\kappa \wedge {\rm d}x^\mu \wedge {\rm d}x^\nu. Thus,
\partial_\kappa B_{\mu\nu} - \partial_\mu B_{\kappa\nu} -\partial_\nu B_{\mu\kappa}=0.
Using the asymptotically flat coordinates on B_{2n}(q_n), shifted such that q_n has coordinates zero, we define on B_{2n}(q_n),
\begin{aligned}
A_\mu^n(x) := -\sum_{\nu>\mu} \int_0^{x^\nu} B_{\mu\nu}\bigl(x^1, \ldots, x^{\nu-1}, t, 0, \ldots, 0\bigr) {\rm d}t.
\end{aligned}
Then
\begin{aligned}
\partial_\kappa A_\mu^n(x) ={} & -\sum_{\nu>\min \{\mu, \kappa\}} \int_0^{x^\nu} \partial_\kappa B_{\mu\nu}\bigl(x^1, \ldots, x^{\nu-1}, t, 0, \ldots, 0\bigr) {\rm d}t\\& + \delta_{\mu>\kappa} B_{\mu\kappa}\bigl(x^1, \ldots, x^{\kappa}, 0, \ldots, 0\bigr). \end{aligned}
Thus for \kappa<\mu,
\begin{aligned}
\partial_\kappa A_\mu^n(x) - \partial_\mu A_\kappa^n(x)
={} & -\sum_{\nu> \kappa} \int_0^{x^\nu} \underbrace{(\partial_\kappa B_{\mu\nu} -\partial_\mu B_{\kappa\nu})}_{=\partial_\nu B_{\mu\kappa}}\bigl(x^1, \ldots, x^{\nu-1}, t, 0, \ldots, 0\bigr) {\rm d}t\\& + B_{\mu\kappa}\bigl(x^1, \ldots, x^{\kappa}, 0, \ldots, 0\bigr) \\
={} &- \sum_{\nu> \kappa} \bigl( B_{\mu\kappa}\bigl(x^1, \ldots, x^{\nu}, 0, \ldots, 0\bigr)- B_{\mu\kappa}\bigl(x^1, \ldots, x^{\nu-1}, 0, \ldots, 0\bigr) \bigr)\\&
+ B_{\mu\kappa}\bigl(x^1, \ldots, x^{\kappa}, 0, \ldots, 0\bigr) \\ ={}& -B_{\mu\kappa}(x)=B_{\kappa\mu}(x).
\end{aligned}
Thus A^n=A^n_\mu {\rm d}x^\mu is an equivalent potential to A on B_{2n}(q_n) and by construction it satisfies |A|\leq c\frac{2}{n} for some uniform constant c>0.
Hence, by the Poincaré lemma, A^n-A={\rm d}f_n for a smooth function f_n on B_{2n}(q_n). Let \tilde{f}_n be a smooth function on all of M that coincides with f_n on B_{n}(q_n) and set \tilde{A}^n=A+{\rm d}\tilde{f}_n. Then
H_A= {\rm e}^{{\mathrm{i}}\tilde{f}_n} H_{\tilde{A}_n}{\rm e}^{-{\mathrm{i}}\tilde{f}_n}.
For k\in {\mathbb R}^m, we define \phi_n= {\rm e}^{{\mathrm{i}}k_\mu x^\mu} {g}_n\Phi. By our assumptions on g_n and \Phi, we have
\| \phi_n\|^2 \geq C_o \operatorname{vol} B_{n}(q_n)
for a uniform constant C_o. Setting \lambda = |k|^2, we obtain
\begin{aligned} (H_0 -\lambda)\phi_n(x) ={} & \bigl((\Delta_g -\lambda) \bigl(\tilde{g}_n{\rm e}^{{\mathrm{i}}k_\mu x^\mu}\bigr)\bigr) \Phi - 2 \nabla^S_{\nabla (\tilde{g}_n {\rm e}^{{\mathrm{i}}k_\mu x^\mu} )} \Phi + \tilde{g}_n \bigl(\nabla^S\bigr)^*\nabla^S \Phi\\
={} & \bigl({\rm e}^{{\mathrm{i}}k_\mu x^\mu}\Delta_g \tilde{g}_n + 2\bigl\langle \nabla \tilde{g}_n, \nabla {\rm e}^{{\mathrm{i}}k_\mu x^\mu}\bigr\rangle + \tilde{g}_n (\Delta_g - |k|^2) {\rm e}^{{\mathrm{i}}k_\mu x^\mu} \bigr) \Phi\\&
- 2 \nabla^S_{\nabla (\tilde{g}_n {\rm e}^{{\mathrm{i}}k_\mu x^\mu})} \Phi + \tilde{g}_n \bigl(\nabla^S\bigr)^*\nabla^S \Phi.\end{aligned}
By the decay estimates of \Delta_g, \nabla \tilde{g}_n and the uniform upper and lower bound on \Phi and g_n, we get
\begin{aligned}
\bigl\|\bigl({\rm e}^{{\mathrm{i}}k_\mu x^\mu}\Delta_g \tilde{g}_n + 2\bigl\langle \nabla \tilde{g}_n, \nabla e^{{\mathrm{i}}k_\mu x^\mu}\bigr\rangle \bigr) \Phi\bigr\|^2 \leq \frac{C}{n} \operatorname{vol} B_{2n}(q_n)\leq \frac{C}{n} \operatorname{vol} B_{n}(q_n) \leq \frac{C}{n} \| \phi_n\|^2,
\end{aligned}
where C is a constant that changes from line to line but is always uniform in n. Similarly, the upper bounds on the derivatives of \Phi give
\begin{aligned}
\bigl\| \nabla^S_{\nabla (\tilde{g}_n {\rm e}^{{\mathrm{i}}k_\mu x^\mu} )} \Phi + \tilde{g}_n \bigl(\nabla^S\bigr)^*\nabla^S \Phi \bigr\|^2
\leq \frac{C}{n^{(\tau+1)}} \operatorname{vol} B_{2n}(q_n)\leq \frac{C}{n^{(\tau+1)}} \operatorname{vol} B_{n}(q_n) \leq \frac{C}{n} \| \phi_n\|^2.
\end{aligned}
Moreover,
\bigl(\Delta_g - |k|^2\bigr) {\rm e}^{{\mathrm{i}}k_\mu x^\mu} = {\rm e}^{{\mathrm{i}}k_\mu x^\mu} \bigl(k_\mu k_\nu \bigl(g^{\mu\nu} -\delta^{\mu\nu}\bigr) -{\mathrm{i}}k_\mu g^{\mu\nu}_{,\nu} - {\mathrm{i}}k_\nu g^{\lambda \nu}\partial_\lambda (\ln \det g)\bigr).
By the asymptotic flatness of M we get
\bigl|\bigl(\Delta_g - |k|^2\bigr) {\rm e}^{{\mathrm{i}}k_\mu x^\mu}\bigr|=\mathcal{O}\bigl(|x|^{-{\tau}}\bigr).
Together with the volume estimate above and the choice of q_n, this implies
\bigl\Vert \bigl(\Delta_g - |k|^2\bigr) {\rm e}^{{\mathrm{i}}k_\mu x^\mu}\bigr\Vert^2 \leq C (|q_n|-2n)^{-\tau} \operatorname{vol} B_{2n}(q_n) \leq C n^{-\tau} \| \phi_n\|^2
in a similar way as above. Combining all of the above we get that for any \epsilon>0 and we can find n large enough such that
\Vert (H_0 -\lambda)\phi_n\Vert \leq \epsilon \| \phi_n\|.
Set \psi_n(x) := {\rm e}^{{\mathrm{i}}\tilde{f}_n(x)} {\rm e}^{{\mathrm{i}}k_\mu x^\mu} {g}_n(x)\Phi / \|\phi_n\|. By construction, \psi_n is an orthonormal sequence.
We have
\bigl\Vert (H_A+1)^{-1}(H_A-\lambda)\psi_n\bigr\Vert = \bigl\Vert (H_{\tilde{A}_n}+1)^{-1}(H_{\tilde{A}_n}-\lambda)\phi_n\bigr\Vert.
Using H_{\tilde{A}_n} = H_0 -2{\mathrm{i}} \nabla_{\tilde{A}_n} -{\mathrm{i}} \operatorname{div} \tilde{A}_n +|\tilde{A}_n|^2 =H_0 +{\mathrm{i}} (\nabla +{\mathrm{i}}\tilde{A}_n)^* \tilde{A}_n - {\mathrm{i}}\tilde{A}_n\nabla, we obtain
\begin{aligned}
\bigl\Vert (H_A+1)^{-1}&(H_A-\lambda)\psi_n\bigr\Vert
\leq\bigl\Vert (H_{\tilde{A}_n}+1)^{-1}\bigr\Vert \cdot \Vert (H_0 -\lambda)\phi_n\Vert\\
& +\bigl\Vert (H_{\tilde{A}_n}+1)^{-1} \bigl(\nabla +{\mathrm{i}}\tilde{A}_n\bigr)^*\bigr\Vert\cdot \bigl\Vert \bigl|\tilde{A}_n\bigr| \tilde{g}_n\bigl\Vert
+\bigl\Vert (H_{\tilde{A}_n}+1)^{-1} \bigr\Vert \cdot \bigl\Vert \bigl|\tilde{A}_n\bigr| \nabla (\tilde{g}_n \Phi)\bigr\Vert.
\end{aligned}
Since H_{\tilde{A}_n} is a nonnegative operator, by the spectral theorem (H_{\tilde{A}_n}+1)^{-1} is bounded on L^2 uniformly in n. Similarly, we can show that (H_{\tilde{A}_n}+1)^{-1} H_{\tilde{A}_n} is bounded on L^2, uniformly in n. Thus, also (H_{\tilde{A}_n}+1)^{-1} (\nabla +{\mathrm{i}}\tilde{A}_n)^* is bounded on L^2 uniformly in n. Since \tilde{A}_n|_{B_{2n}(q_n)}\to 0 as n\to \infty and using again the properties of \tilde{g_n}, \Phi as before, we obtain \bigl\Vert (H_A+1)^{-1}(H_A-\lambda)\psi_n\bigr\Vert \to 0 and, hence, that \lambda\in \sigma_{\mathrm{ess}} (H_A).
The remaining claim on the spectrum of D_A follows from to the symmetry of the spectrum in these dimensions. The symmetry of the spectrum D itself, follows for m even by \omega \cdot D\phi =-D(\omega\cdot \phi) by \omega= e_1\cdot e_2 \cdots e_{\dim M}, and for m\equiv 1 mod 4 by the existence of a Spin(m)-equivariant real structure that anticommutes with Clifford multiplication, cf. [Fr, Proposition, p. 31]. Since in even dimensions \omega\cdot also anticommutes with Clifford multiplication as does the real structure just mentioned, D_A anticommutes with these maps as well and has, as a result, symmetric spectrum.=-1