Sketch of a solution:
I am assuming the ambient space is $(\mathbb{R},\mathscr{B}(\mathbb{R}),\lambda)$.
Here we prove a little stronger result:
If $f$ is a measurable function and $f(x+x_n)=f(x)$ for all $x\in\mathbb{R}$ and $n\in\mathbb{N}$, then there is $c\in\mathbb{R}$ such that $f(x)=c$ $\lambda$--a.s. By considering bounded functions first, can be extended to any measurable function.
As pointed out in the comments, the set
$$G:=\{a\in\mathbb{R}:f(x+a)=f(x) \,\text{for all}\,x\in\mathbb{R}\}$$
is a additive subgroup of $\mathbb{R}$. By assumption, $\{x_n:n\in\mathbb{N}\}\subset G$. The assumption $x_n\neq0$ for all $n$ and $x_n\rightarrow0$, implies $G$ is not of the form $h\mathbb{Z}$, but a dense additive subgroup of $\mathbb{R}$.
Consider the function $\phi(x)=\frac{1}{2}\mathbb{1}_{[-1,1]}(x)$, and for any $\varepsilon>0$ let $\phi_\varepsilon(x)=\varepsilon^{-1}\phi(x\varepsilon^{-1})$
Suppose $f\in L_\infty(\mathbb{R})$. Then, $f\in\mathcal{L}^1_{loc}(\mathbb{R})$,
$$f*\phi_\varepsilon(x)=\int \phi_\varepsilon(y)f(x-y)\,dy$$
is a continuous function (in fact uniformly continuous by Young's convolution theorem, but that is not that important for our purposes), and
$f*\phi_{\varepsilon}(x)\xrightarrow{\varepsilon\rightarrow0}f(x)$ at every Lebesgue point of $f$ (and hence a.s.).
For any $a\in G$ and $x\in\mathbb{R}$
$$
f*\phi_\varepsilon(x+a)=\int \phi_\varepsilon(y)f(x+a-y)\,dy=\int \phi_\varepsilon(y)f(x-y)\,dy = f*\phi_\varepsilon(x)
$$
As $G$ is dense in $\mathbb{R}$, this means that $f*\phi_\varepsilon$ is a constant function, say $c_\varepsilon$. From this, it follows that $f$ is constant a.s. (one can for example substitute $f$ by $f\mathbb{1}_K$ for some compact to get that $(f\mathbb{1}_K)*\phi_\varepsilon\xrightarrow{\varepsilon\rightarrow0}f\mathbb{1}_K$ in $L_1$, and then through a subsequence $\varepsilon_n\rightarrow0$ get convergence a.s.)
To conclude, if $f=\mathbb{1}_A$ with $A+x_n=A$ for all $n\in\mathbb{N}$, then $\mathbb{1}_A$ is constant a.s. Hence, either $\lambda(A)=0$ or $\lambda(A^c)=0$.
Edit: Doing a quick review of the problem again in MSE I found that there are at least three postings 1, 2, and 3 that addressed this questions. The solutions in those postings are different to the ones presented here so far, but very interesting too. I also just learnt that the OP is appears as an exercise in Real and Complex Analysis, Rudin, W. chapter 7.