Is there any chance the amide could get hydrolysed here? In the likes of likes penicillin, the lactam ring isn't planar, so the nitrogen lone pairs can't conjugate with the carbonyl and there's no double-bond character between the nitrogen and the carbonyl carbon. It's more like an acid anhydride than an amide in terms of reactivity. Not sure what the conformation is in this case, though.