The sum does not vanish when $N$ is odd. I will elaborate on François Brunault's idea.
Let us assume that $N$ is odd, and let $S$ be the sum in question. Working in the ring $\mathbb{Z}[z]$, we see that $S^2\equiv T\pmod{2}$. Hence it suffices to show that $T^{4N}=N^{2N}$, because $S^{8N}\equiv 1\pmod{2}$ is a consequence.
Let us write $$w:=1+i,\qquad f(z):=e^{2\pi i(2z^2+z)/N}.$$ We shall integrate on translates of the slanted line $w\mathbb{R}$, upwards. An application of the residue theorem shows that $$S=\int_{-1/2+w\mathbb{R}}\frac{f(z+n)-f(z)}{e^{2\pi i z}-1}\,dz= \int_{-1/2+w\mathbb{R}}f(z)\,(1+e^{2\pi z}+e^{4\pi z}+e^{6\pi z})\,dz.$$ In the last integral, we can shift the contour to $w\mathbb{R}$, and then after writing $z=wt$ (where $t$ increases from $-\infty$ to $\infty$), it is straightforward to evaluate the four pieces coming from $1$, $e^{2\pi z}$, $e^{4\pi z}$, $e^{6\pi z}$. The final result is $$T=\exp\left(\frac{\pi i}{4}-\frac{\pi i}{4N}\right)\sqrt{N}.$$ Therefore, $T^{4N}=N^{2N}$, and we are done.