Instabilities for quantum-cascade lasers under self-phase modulation