Does the temperature during this reaction remain constant?
The internal energy of an ideal gas mixture is determined not only by the temperature, but also by the chemical composition of the mixture, and, in the case of a chemical reaction, the composition changes.  For a real gas, the internal energy also becomes pressure-dependent at higher pressures.