Stop camera lean when hitting wall

I managed to resolve this by moving the spring arm closer to the camera. It actually leans quite far without leaning out of the player collision and clipping a wall. The spring arm is the target of rotation.