Uncaught exceptions are events thrown by your app. It is a bit odd that the exception was only thrown in Cypress 10, may want to check change logs for that. You can ignore the uncaught exception by add the following code to your support/index.js file.
https://docs.cypress.io/api/events/catalog-of-events#Uncaught-Exceptions
js
Cypress.on('uncaught:exception', (err, runnable) => {
if (err.message.includes('ev.element is not a function')) {
return false
}
})