Maybe try to make the trace ends a few units in front of your character moving direction, so when it is trying to get away from a wall, the trace will not collide the wall and your character should not stay stuck anymore.
Maybe try to make the trace ends a few units in front of your character moving direction, so when it is trying to get away from a wall, the trace will not collide the wall and your character should not stay stuck anymore.