Don’t think this will be that simple.
My best guess is that the pitch and yaw have to be calculated separatley using quaternions each in a separate component, yaw to a scene comp and spring arm as child with pitch. Both in relative space. This will not allow the camera to roll off. The roll will have to be inherited from the character.