I mean, the Sanctuary spell description states that it only lasts until you attack or harm a creature. Spirit Guardians is a damage spell. It's not even ambiguous.