Thanks @DavZim, removing error = quote(rlang::entrace()) resolved the issue for me!
error = quote(rlang::entrace())