this issue usually comes from too much protein or carbohydrates in the water (uneaten food or a dead fish, dead plants, proteins in fish waste, uneaten food) and then a change to the filter or the bioload, as far as I can tell (like cleaning it at the wrong time and reducing the colony some, or adding a bunch of fish or removing a bunch of fish at once, a fast bioload change) when it happens on a cycled tank.
Sometimes during cycling it can happen when there is like new
driftwood in the tank that's soaking in the water and releasing sugars (carbs), Heterotropic bacteria like Bacillus bacteria, multiplies rapidly (like every 15 minutes, compared to the nitrifiers which multiply every 15 hours), So what the Heterotrophs do is if theres a carbohydrate or protein source,(even dead nitrifying bacteria) they consume it and multiply rapidly and bloom, and eventually their population crashes, too big to sustain and they deplete the resource. As they consume proteins and carbohydrates, they produce
ammonia which feeds the nitrifiers who multiply and eventually take over as the heterotrophs run out of resource to consume.
There's always some of the hetrotropic bacteria around, in low numbers, they are decomposers, just not a lot unless a situation occurs where they can bloom and cloud up the water and leave a white film as they do their thing.
Doing nothing gets rid of it faster than
water changes trying to clear it up, water changes just knock the population down, slow their consumption of the resource and give them more room to reproduce, lengthening the problem.
Clean up real well to remove hopefully what they are consuming, and wait for the water to clear on it's own, then clean up again real well to remove whatever film is left from them and it's done.
I've done waterchanges and clarifiers in the past, it all just makes it go on forever (months) and worse than it was initially., A good clean up and then just let it run it's course is the fastest and easiest way to resolve it. then a clean up afterwards. .
Technically part of the "cycle" also really. they are decomposing dead proteins and stuff the nitrifiers don't touch into ammonia so then the nitrifiers can do their thing.
it an be a disturbance in your cycle like a percentage die off of nitrifiers, it can be extra proteins or carbs/sugars from a death that caused a bloom, or a whole lot of waste and uneaten food in the gravel. Your nitrifiers are fine and as they were even, but the speed at which the hetrotrophs reproduce they can sometimes overwhelm the nitrifying bacteria colony's capability to process ammonia or
nitrites and the ppm climbs as it backlogs, or they can cause oxygen depletion in really severe cases like a large dead fish left to decompose completely and the autotrophs capable of multiplying to almost infinity in a small space of a fish tank.
A whole lot of times, it just looks bad for a week or so, and there's a big pile of
nitrates at the end and a film on everything that needs to be cleaned up.