How to disable default error page

I have created my own uncaught Exception handler that directs users to different error pages depending on the Exception type (uses an Event Subscriber) which works in dev mode but in production mode all uncaught exceptions are directed to the default error page set in Pimcore admin.

Is there any way to disable the default error page (in Pimcore 5.8) ? It looks like the way to do it is via the
ResponseExceptionListener constructor but not sure how to go about it

public function __construct(DocumentRenderer $documentRenderer, ConnectionInterface $db, $renderErrorPage = true)