No, it does indeed track mouse delta, but it's not the frames being weird
Think about it, your mouse is all the way on the right side of your screen at like x = 1280, y = 200, and then teleports to the other side of the screen to x = 0, y = 200, turning your mouse delta to (-1280, 0), causing the giant flip
It's not lagspikes, just start spinning in circles and you'll see it happens constantly