Found the solution.
The problem was on the destination page.
If anyone has the same problem, you must catch the exception inside a cy.origin block :
cy.origin('www.external.domain', () => {
cy.on('uncaught:exception', (err, runnable) => {
return false // or anything that suits your needs
})
})