Geala is right; Sanctuary will instantly cancel any offensive concentrated spell. Also vice versa Sanctuary is lost as soon as any type of offensive spell is cast, even something as simple as Psionic Overload which is just an offensive buff.
Bard (10) also provides
Spirit Guardians too, which is why I initially recommended it because I assumed it's why you wanted Cleric (5) ^^