Sufficient sample size and its connection to the loss landscape convergence