It seems like your factory building was first built by a player using a force that no longer exists.
If you recreate the force in the editor, the invalid LuaForce in your error message will be valid again (tested in 1.1.21) and you will be able to use your factory building again.
To recreate the force, type /editor
, click on the flag tool, and enter the exact name of the force in the text box below.
If you don't know or remember the name of the force you used to place the factory building initially, please upload a save and I will help you find out.