Handle StackOverflowError in the Prettifier.default method.