Prevention of overfitting in cryo-EM structure determination