/Engine/Source/Runtime/Engine/Classes/GameFramework/CharacterMovementComponent.h
Reject sweep impacts that are this close to the edge of the vertical portion of the capsule when performing vertical sweeps, and try again with a smaller capsule.
static const float SWEEP_EDGE_REJECT_DISTANCE = 0.15f;