By denoting \bar{k}(\cdot,X):=k(\cdot,X)-m_\mathbb{P}, we have
\begin{aligned}
\mathbb{E}\left\lVert(I-P)\bar{k}(\cdot,X)\right\rVert_\mathcal{H}^2&{}={}&\mathbb{E}\left\langle (I-P)\bar{k}(\cdot,X),(I-P)\bar{k}(\cdot,X)\right\rangle_\mathcal{H}
\\
&{}={}&\mathbb{E}\left\langle (I-P)\bar{k}(\cdot,X),\bar{k}(\cdot,X)\right\rangle_\mathcal{H}
\\
&{}={}&\mathbb{E}\left\langle I-P,\bar{k}(\cdot,X)\otimes_{\mathcal{H}}\bar{k}(\cdot,X)\right\rangle_{\mathcal{L}^2(\mathcal{H})},
\end{aligned}
where we used (I-P)^2=(I-P). Since k is bounded, and thus Bochner integrable, it follows that
\begin{aligned}
\mathbb{E}\left\langle I-P,\bar{k}(\cdot,X)\otimes_{\mathcal{H}}\bar{k}(\cdot,X)\right\rangle_{\mathcal{L}^2(\mathcal{H})}&{}={}&\left\langle I-P,\mathbb{E}[\bar{k}(\cdot,X)\otimes_{\mathcal{H}}\bar{k}(\cdot,X)]\right\rangle_{\mathcal{L}^2(\mathcal{H})}
\\
&{}={}&\left\langle I-P,\Sigma\right\rangle_{\mathcal{L}^2(\mathcal{H})}=\text{tr}\left((I-P)\Sigma\right)
\\
&{}={}&\text{tr}\left(\Sigma^{1/2}(I-P)^2\Sigma^{1/2}\right).
\end{aligned}
The proof is completed by using \left\lVert(I-P)\Sigma^{1/2}\right\rVert_{\mathcal{L}^2(\mathcal{H})}^2=\text{tr}\left(\Sigma^{1/2}(I-P)^2\Sigma^{1/2}\right) in (Proof).