Sounds like you have anaerobic bacteria in the sand where you have denitrification happening, basically a conversion of organic matter to nitrate and then into nitrogen. When you do a water change, the sand is getting stirred up, and exposing the anaerobic bacteria oxygen. This will disrupt the denitrification process, and release nitrite and/or ammonia into the water column.
This tank isn't planted right?
What type of filtration do you have?
How deep is the sand?
Are you vacuuming to the bottom of the sand?
What type of sand?
And you're not doing weekly water changes? If so how much?