I mean... your suggestion would fix the issue, but it's me adding an extra exception for a 3rd party mod, where if you read the error message, my mod isn't actually the cause.
The error says that "ir2-electronics-1" is registered more than once, which is an ir2 specific technology, so it must be IR2 doing something strange. (I would speculate that it is changing electronics technology to ir2-electronics-1 without checking to see if it already exists)
Bob's mods itself can't make such an error. if you call add_prerequisite, it will check to see if it exists, and only add it if it doesn't.
calling replace_prerequiste first checks if the old one exists, and if it does, called remove_prerequisite(old) then add_prerequisite(new), so if it were performing a replace_prerequiste function to change "electronics" into "ir2-electronics-1", it would remove "electronics" but then not actually add "ir2-electronics-1" because it already existed.
This is the kind of reason why my mods use my library, it isn't perfect or complete, I have a list of things I could add or improve in my library, but it has been developed over many years, and includes many safeguards to prevent errors such as the one you're experiencing.
Now, I'm not familiar with the inner workings of Industrial Revolution, but a better solution to the problem is if IR2 performed more safety checks, in this case checking to make sure a technology isn't already included as a prerequisite before adding it, and then use a "remove" and "add" system as part of their "replace" system if they don't already.