"Fail Silently" Mixins

I have a mixin that often conflicts with other mods. Since my mixin isn’t very important for the functionality of my mod, I want it to simply be skipped if it throws an InvalidInjectionException or anything. Is there a way to do this?