Trying the mitigations, it fails:
% defaults write com.apple.Safari IncludeInternalDebugMenu 1
2023-10-30 16:25:46.182 defaults[71906:4790936] Could not write domain /Users/poppopret/Library/Containers/com.apple.Safari/Data/Library/Preferences/com.apple.Safari; exiting
Does this require disabling SIP?