Towards Robust Foundation Models for Digital Pathology