PROBLEM:
Let $\bf E$ and $\bf B$ be static, and source free electric and magnetic fields in $\mathbb R^3,$ respectively which are infinitely many times differentiable. Also assume that they satisfy either of the following : $\mathbf E = \mathbf B ~\textrm{or}~ \mathbf E = -\mathbf B.$ (Bogomolny equations). Prove that as long as the equations describe a finite energy configuration, $\mathbf E = \mathbf B = 0.$
MY ATTEMPT:
Consider a very large boundary $S,$ compared to the region under consideration. Since $\int \mathbf E^2~\mathrm dv$ all over space is a finite value(since the energy configuration described is finite), the integrand must go to zero at infinity. Or, at my chosen surface $S,~~ \mathbf E = -\textrm{grad}(V) = 0.$ Thus we see that the potential $V$ is the same everywhere on the surface $S$ (since $\bf E$ is zero everywhere on the surface). Let $V(S) = a.$ So the problem reduces to the boundary problem, $V(S) = a$ at all points on $S$ and also the laplacian of $V$ is zero everywhere inside $S$ (since it is source free). One evident solution to this is $\bf E = 0,$ (as a result of which $\bf B = 0,$ from the Bogomolny equations). Hence, this must be the only solution by uniqueness.
MY DOUBT:
Is it okay to start working in the boundary conditions using this surface $S$ as I defined it? If not, can the definition of $S$ be changed to satisfy the rest of the solution? If that cannot be done, please suggest other solutions.
PS: This is a problem from RUDOLF ORTVAY COMPETITION IN PHYSICS (1997) problem 28. I do not consider this as a homework question and was asked by no one to get this solved. This is out of my interest only. If you feel like suggesting the homework tag please do so.