3D Fighting game camera that tracks two players.

My problem is that the camera quickly flips when I get in between 360 back to 0 ever so slightly, how do I get rid of that?

In the video the cube in the middle is an actor I created that has the spring arm for the camera. I am outputting the rotation

I was able to get the 360 motion of the camera but I just have that slight glitch I wanted to get rid of. Thanks to anyone who takes the time to figure this out with me!
Link to video:
My Struggle Creating this camera