Help with aligning Third Person Procedural Aiming System

Hello, I am setting up third person shooter game which i ran into problems. Initially the weapon is using two trace system where the camera trace where player is aiming at. Then second trace is from the weapon’s muzzle to the location of which was the hit location of the first trace (camera). I realise that although this works perfectly gameplay wise. It kills a lot of immersion. Since no matter how far or close the player is aiming at, the aiming pose would still be pointing at the same angle. So I switched approach a bit. Instead of tracing from weapon to camera’s hit location. I traced from weapon muzzle to its forward vector. Then find look at rotation and delta rotator to find the difference between weapon muzzle hit location and camera hit location, then tell the upper pose to correct the aiming until the trace from the two matches. But i couldnt get it to work. For some reason when ever the distance between the two becomes too close, the upper body would just turn side way. Thank you for your help