Character animation passes through the wall.

I am making an FPS game using Unreal Engine 4.
I don’t know what to do with the gun aiming animation goes through the wall.
Even if you try to modify the components through the character blue print, the character will be scaled up. Help me.