Out-of-Distribution Generalization in Climate-Aware Yield Prediction with Earth Observation Data