On the Relation between Sensitivity and Accuracy in In-context Learning