On the Sample Complexity of Learning under Geometric Stability