Spatial Distribution-Shift Aware Knowledge-Guided Machine Learning