When I first cheked this mod i noticed that is incompatible with my mod https://mods.factorio.com/mod/Random_Utilities... i cheked your code to find the problem and you have not limited the area of the beacon to 64, if a beacon is more than 21 (21.3) your mod go over the 64 (factorio limit for the beacon range) and it crush.
This bug is pretty easy to fix, I've already done a fix in this file: https://mega.nz/file/DpdgUAZD#N2CpeHn1CX_SIKqym-s5Hh1laBEhzn3yhSSIXNZ7D5I
File already zipped: https://mega.nz/file/ShUwFKxL#VD70hl5RnPYFtW4uD5J8zGgJUXhcWYpAsrCZcz5tY-c
I'm waiting for a fix for the mod, thanks of your time.
I'l be happy if you can quote me under your mod if you're going to use this fix.