Rigidbody gets stuck on wall?

I have a mecanim-controlled character with a rigidbody attached. The character moves using Root Motion from the Animator. When the character jumps and hits a wall, he gets stuck. I’ve heard this problem has happened before with RigidbodyWalker scripts but I haven’t been able to find a solution.

Is there a way to ensure the player doesn’t get stuck floating in a wall after jumping?

“Alright so apparently changing the mass of the rigidbody to 1 fixes this and causes him to collide properly. I have no idea why this solved it and I would like to set the mass back to a more realistic value but if anyone has any idea on why changing the mass fixes this I’d be glad to hear it :P”