Mix of a few additional mods can lead to runtime errors
https://mods.factorio.com/mod/advanced_target_priorities - modifies the target priorities window (maybe unrelated to the crash)
https://mods.factorio.com/mod/SearchlightAssault - adds a searchlight, which is a turret, but the priority UI is hidden.
https://mods.factorio.com/mod/blueprint-sandboxes
and https://mods.factorio.com/mod/EditorExtensions
In the sandbox environment in 'editor-mode', it can open the target priority window (with the blacklist button as expected) as a second UI window.
However, after closing that target priority UI (keeping Searchlight's custom UI) and interacting with Searchlight again, I got the crash below:
The mod Turret Blacklist (1.1.0) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event Turret-Blacklist::on_gui_opened (ID 104)
Gui element with name turret-blacklist-frame already present in the parent element.
stack traceback:
[C]: in function 'add'
__Turret-Blacklist__/control.lua:30: in function <__Turret-Blacklist__/control.lua:27>
I also have Rampart and Rampart Target Priority Compatibility fix (as well as over 200 other mods), but I suspect custom searchlight UI is the case.