So, yes, the repair turret mod is causing this as it looks like Klonan also deepcopy's the roboport
but as this mod sets the next_upgrade value of the base game roboport when the repair-turret mod copies the roboport it too copies the next_upgrade value which is not valid because the repair turret is a different size.
So the error is caused by the Repair Turret mod.
I can, however, remove the line that sets the next_upgrade in the base-game roboport. This just means a generic upgrade planner wouldn't work and you'd have to set the from and to entity.