Camera briefly clips into character when I move.

So I’m making a side scroller using this tutorial playlist: Point Scoring - #6 Creating A MOBILE Endless Runner Unreal Engine 4 - YouTube

I just finished episode 5 and am now able to switch from side to side in my project, I didn’t like the camera moving along with the character on al axis so I followed a forum online to have it only move on one axis (z): How to lock camera y-axis so it only moves forward?
After a while I got this working as well and am very happy with the result.
The only issue I’m having is when I move from 1 side to the other my camera seems to only for a millisecond snap into my character (Almost like a first person shooter).
I have 2 collision boxes on the side of my character as in my game the player is running up between two buildings from the side, I made sure they aren’t in contact with the player or camera to avoid clipping, maybe it still has something to do with that but I honestly don’t know.
As you might have guessed I’m pretty new to the engine and I’m trying to figure things out.
Can anyone help me with this problem?
If you need screenshots from something or more information feel free to ask.

It was caused by the camera collision test it did.