It looks like catching errors from injected script tags may be possible. See:
https://stackoverflow.com/a/51857110/1165940
https://developer.mozilla.org/en-US/docs/Web/API/GlobalEventHandlers/onerror
Would this prevent an error in JS in a banner from halting JS execution on the whole pageview? What is the current situation? That is, how do errors in banner JS currently impact on the site, on mobile and desktop?
See T214330 for a recent issue of this sort.