I just encountered almost this exact same error, just some line differences:
Error while running event promethium-crafting-rework::on_entity_settings_pasted (ID 38)
promethium-crafting-rework/control.lua:314: attempt to index field '?' (a nil value)
stack traceback:
promethium-crafting-rework/control.lua:314: in function 'remove_beacon'
promethium-crafting-rework/control.lua:283: in function <promethium-crafting-rework/control.lua:271>
Seems I can repeat it consistently when copying settings from one cryogenic plant to another. The cryogenic plants I have tested with are placed on Aquilo and Vulcanus. It doesn't seem to matter if they are frozen or not (happens with both frozen, both unfrozen, and one frozen the other not). I have observed it give this error seemingly regardless of recipe - ones I've tested are a parameter recipe (an option you can enable under interface settings, to show parameters in selection lists, so you can build parameterized blueprints and recipes directly), solid fuel, fluoroketone cooling, and fusion reactor, as well as explosives when tested on Vulcanus (shipped them all the way to test lol)
The parameter recipe had been copy pasted from a Foundry that came from a blueprint, and would have included logistics network connection and controls. The other recipes did not. The fluoroketone and solid fuel were a copy paste from existing plants that had done those recipes multiple times, the fusion reactor pasting had been done between two freshly placed cryogenic plants, both with no modules. Happened when pasting the fusion reactor recipe onto a totally unconfigured cryogenic plant, as well as when placing two cryogenic plants, manually selecting fusion reactor in both (with no other setting or configuration changes) and then pasting from one onto the other.
Copying a plant as a blueprint, and pasting that blueprint over an existing one to copy settings, seems to work fine, its just the shift +right and shift + left click copy paste that gives the issue.
After pasting a blueprint twice to get two identically configured cryogenic plants, shift + right click copy pasting the settings of one to the other causes the crash still.
Ghost versions of the cryogenic plants do not cause the error when settings are copy pasted, only actual ones.
The cryogenic plants I tested with are Mythic quality (from the Mythic Quality mod), and I also have Quality effects fixed using Factorio 2.0.56's new feature to make quality scale the module slots of machines. The latter is probably unrelated, though since that feature wasn't in Factorio when LeMauzer reported the issue. I also have Stable Foundations, which makes buildings placed on different concrete or stone tiers get an invisible beacon that gives a bit of crafting speed, efficiency, and productivity, all configurable. That might be related since it also does invisible beacons.
I also have Productivity Fix, which makes all recipes accept productivity (because of module limitations, the aforementioned Stable Foundations won't apply its bonuses unless all the bonuses can be applied, and that bothered me, so I made productivity work in every recipe). I don't have it configured to make beacons allow productivity or quality modules, so I don't think its that modifying the hidden beacon, especially since that already accepts productivity modules, in order to be able to work as it does.
I have quite a few other mods, but I don't think they would possibly be having an impact here - I can give more information and list more of those mods if needed, though.