I am trying to numerically obtain the trajectory of an electron inside a periodic magnetic field $\mathbf{B}$, taking into account that the relativistic factor $\gamma$ is not a constant (the electron loses energy due to radiation). The energy loss is related to the instantaneous power radiated, given by the Liénard formula: $$ \frac{d\gamma}{dt}=\frac{1}{mc^2}\frac{dE}{dt}=\frac{e^2\gamma^6}{6\pi\varepsilon_0mc^3}\big(\dot{\mathbf{\beta}}^2-(\mathbf{\beta}\times\dot{\mathbf{\beta}})^2\big),\tag{1} $$ where $\beta=\mathbf{v}/c$ and $\dot{\beta}=\mathbf{a}/c$ ($\mathbf{v}$ and $\mathbf{a}$ are the usual velocity and acceleration vectors of the electron). Note that $d\gamma/dt$ is a positive quantity:
$$ (\mathbf{\beta}\times\dot{\mathbf{\beta}})^2=\Vert\mathbf{\beta}\times\dot{\mathbf{\beta}}\Vert^2=\Vert\beta\Vert^2\Vert\dot{\beta}\Vert^2\sin^2\theta, $$ where $\theta$ is the angle between the vectors $\beta$ and $\dot{\beta}$. Therefore,
$$ \dot{\mathbf{\beta}}^2-(\mathbf{\beta}\times\dot{\mathbf{\beta}})^2=\Vert\dot{\mathbf{\beta}}\Vert^2-\Vert\mathbf{\beta}\times\dot{\mathbf{\beta}}\Vert^2=\Vert\dot{\mathbf{\beta}}\Vert^2(1-\Vert\beta\Vert^2\sin^2\theta)\geq0, $$ where we have used that $\Vert\beta\Vert^2\leq1$ and $\sin^2\theta\leq1$. However, the electron is losing energy, so $d\gamma/dt$ should be negative. Thus, we shall write
$$ \frac{d\gamma}{dt}=-\frac{e^2\gamma^6}{6\pi\varepsilon_0mc^3}\big(\dot{\mathbf{\beta}}^2-(\mathbf{\beta}\times\dot{\mathbf{\beta}})^2\big). $$
After some research, I have come across Abraham-Lorentz force (see this Wikipedia article, for reference). This force accounts for the
"reaction force on an accelerating charged particle caused by the particle emitting electromagnetic radiation by self-interaction".
which I believe should be also included in the $\mathbf{F}=m\mathbf{a}$ equation if we consider that radiation is taking place. The expression for this reactive force, $\mathbf{F}_{\text{rad}}$, reads:
$$ \mathbf{F}_{\text{rad}}=\frac{\mu_0e^2}{6\pi c}\bigg(\gamma^2\dot{\mathbf{a}}+\frac{\gamma^4\mathbf{v}(\mathbf{v}\cdot\dot{\mathbf{a}})}{c^2}+\frac{3\gamma^4\mathbf{a}(\mathbf{v}\cdot\mathbf{a})}{c^2}+\frac{3\gamma^6\mathbf{v}(\mathbf{v}\cdot\mathbf{a})^2}{c^4}\bigg). $$
The magnetic field where the electron is moving is given by
$$ B_x=\frac{B_0k_x}{k_y}\sin{(k_{x}x)}\sinh{(k_{y}y)}\cos{(k_{z}z)} $$ $$ B_y=-B_0\cos{(k_{x}x)}\cosh{(k_{y}y)}\cos{(k_{z}z)} $$ $$ B_z=\frac{B_0k_z}{k_y}\cos{(k_{x}x)}\sinh{(k_{y}y)}\sin{(k_{z}z)}, $$ where $k_x$, $k_y$ and $k_z$ are just some constants.
Therefore, Lorentz Force equation in its relativistic formulation reads: $$ \frac{d}{dt}(\gamma m \mathbf{v})=-e(\mathbf{v}\times\mathbf{B})+\mathbf{F}_{\text{rad}} $$ $$ m\mathbf{v}\frac{d\gamma}{dt}+m\gamma\mathbf{a}=-e(\mathbf{v}\times\mathbf{B})+\mathbf{F}_{\text{rad}}.\tag{2} $$
I have tried solving the ODE system that stems from this last equation (where the variables are the electron's position, velocity, acceleration and $\gamma$). Derivatives of the acceleration are directly obtained from the $\mathbf{F}_{\text{rad}}$ expression.
The results I obtain are not consistent, since the $v_z$ component of the velocity increases as the electron moves through $\mathbf{B}$, and eventually becomes $v_z>c$, which makes no physical sense. I think I may be overlooking some relevant aspect in all this, since the electron dynamics I obtain make sense except for this $v_z>c$ issue.
I would highly appreciate any insight on this topic.