In one-dimensional space EM theory with $E$ and $B$ fields does not work. You can only have a static E-field, it is not very interesting (but if you wish, see ref1 ref2).
You could, however, keep your defined $f(x)$ exactly as it is and use it in 3 space dimensions, where it will describe an infinite slab of uniform charge parallel to the $yz$-plane and moving in the $x$ direction.
To solve it we can start with $v=0$, which gives just a static E-field, finite everywhere. Then transform it to a frame of reference where $v$ is nonzero, see ref3. Nothing infinite will come out of that.
You can then also try to solve it directly. It seems your reasoning would still apply and give an infinite $E$-field if you use Ampere's and Faraday's laws. So you basically prove that Maxwell was right when he added the $\partial{\bf E}/\partial t$ to Ampere's law to complete it. You will see that here it cancels the ${\bf J}$ term! (Note that ${\bf E}$ inside the charged slab is not zero, it points from the "middle plane" outwards with increasing strength if you move from this middle plane to the slab's surfaces.)
From ref3 we see that even for relativistic speed, the moving slab still has the same
${\bf E}$ as in the static case and that ${\bf B}$ remains zero (from ${\bf E}_{\|'}= {\bf E}_{\|}$ and the three equations following it). So this is actually just as uninteresting as EM in one space dimension where you would have this result by definition.