This is an instance of <a href="https://en.wikipedia.org/wiki/Quintuple_product_identity">Watson's quintuple product identity</a> (also Macdonald identity for $BC_1$): $$\prod_{n\geq 1}(1-s^n)(1-s^nt)(1-s^{n-1}t^{-1})(1-s^{2n-1}t^2)(1-s^{2n-1}t^{-2})=\sum_{n\in \mathbb Z}s^{\frac{3n^2+n}{2}}(t^{3n}-t^{-3n-1}).$$ By plugging in $t=x^{-1}$ and $s=-x^{4}$ this becomes exactly your identity. Somewhat amusingly, the quintuple product identity can be proven directly from the triple product identity. See <a href="http://www.ams.org/journals/proc/1972-032-01/S0002-9939-1972-0289316-2/">this</a> article by Carlitz, or <a href="https://link.springer.com/chapter/10.1007/978-3-642-56513-7_15">this</a> article of Foata and Han.