Why would a comet suddenly explode just before impact?”
Suicide Comet???
The earth atmosphere is very thick, when considering the speed of these objects and the energy they are spilling off.
It's reason Engineers use the term: "Breakup upon reentry"