Particle Flashing Red when i run specific code

I would start here:

Apparently a divide-by-zero can cause this, among other things.