The Influence of Group Size and Social Interactions on Collision Risk with Obstacles