Shouldn't something like this fix the problem, at least for scratch buffers:
(add-hook 'lisp-interaction-mode-hook (lambda () (setq-local trusted-content :all)))
(add-hook 'lisp-interaction-mode-hook (lambda () (setq-local trusted-content :all)))
Only the scratch buffer is to be exempted, not every buffer that gets this mode.
(with-current-buffer "*scratch*"
(setq-local trusted-content :all))If we are already experimenting with different ideas, this should also work (and gives a hint of how you want to fix the issue upstream):
(define-advice get-scratch-buffer-create (:filter-return (buf) trusted)
(with-current-buffer buf
(setq-local trusted-content :all))
buf) (when (equal (buffer-name) "*scratch*") ...)