Help with sword getting inside the body when character is running

i cant use animations with sword because the sword get inside the body and it is attached to the upper arm bone. i tried all type of collisions but nothing worked. pls help