You didn't do your math right Let $x= 2k + 1$ so $x(x^2 + 1) = (2k+1)((2k+1)^2 + 1)=$
$(2k+1)((2k+1)^2 + 1) = 8k^3 + 12k^2 + 8k +2$ so you had a typo.
But it's easier to do
$(2k+1)^3 + (2k + 1)=$
$(2k)^3 + 3(2k)^2 + 3(2k)+ 1 + (2k + 1)=$
$8k^3 + 12k^2 + 6k + 1 + 2k + 1=$
$8k^3 + 12k^2 + 8k + 2$.
So $4|8, 12, 8$ the $4|8k^3 + 12k^2 + 8k$ and the remainder of $8k^3 + 12k^2 + 8k + 2$ is $2$.
....
Also ... this may be overly abstract: If we let $x = 2k + 1 = m + 1$ where $m=2k$ is an even number, then $x^3 +x = (m+1)^3 + (m+1) = a_3m^3 + a_2m^2 + a_1m + a_0$, a polynomial. For $j\ge 2; m^j = (2k)^j = 2^j*k^j=4*2^{j-2}{k^j}$ we have $4|a_jm^j$.
So the remainder when divided by $4$ will be the same as the remainder of $a_1m + a_0$.
By binomial theorem: $(m+1)^3 = \sum_{i=0}^3 {3\choose i}m^i$ so for $(m+1)^3 + (m+ 1)$ we have $a_1 = {3\choose 1} + 1$ and $a_0 = {3\choose 0} + 1$.
${3\choose 1} = 3$ and $3+1=4$ so $4|a_jm$ and the remainder when divided by $4$ will be the same as the remainder of $a_0 = {3\choose 0} + 1$ when divided by $4$.
${3\choose 0} = 1$ and 1+1 = 2