Weird lines popping when editing mesh

Does anyone know why this happens? I am not sure I ever had this issue but I think I had it once a while back. It happens when I edit the mesh or if I turn on/off some modifiers. I am actually just turning on/off a modifier on that gif.