Open, ConfirmEmailController.php
line : 67 add the code
} catch (InvalidConfirmationTokenException $e) {
return new HtmlResponse('invalid token.');
add --> header ('Location: https://domain.com');
}
Invalid token error is resolved this way. Hopefully it benefits your business