Might want to turn LVP off, I do not think you are using it.

I keep going back to hat fancy OSC thing. The 877 is pretty straight forward. Has to be the OSC acting up to cause a change in speed. Power cycling causing a clitch? And somehow the programmer is resetting it?