I looked at the mod code.
Farms consume more electricity at night, for this the author entered the solar panel into the farm (reduces electrical consumption during the day), and does not work at night (electricity consumption increases)
The mod factorissimo prohibits solar panels inside itself. So when we put the farm in the factory, the factory tries to remove the solar panel inside the farm.
Inside Factorissimo there is a check for the solar panel, if you add an exception for the solar panel of the farm inside it (entity.name she has a "bi-bio-farm-hidden-panel"), then everything will work.
https://pastebin.com/YBUyJmGD