It seems to me that there is an error with connecting to LM Studio because the IP in the connection attempt is different from the LM Studio, and after reading, I don’t see an option to change it in the config.
You can either change it in the UI under mod settings under the map tab, or you can change it in the json config file located here: C:\Users\*****\AppData\Roaming\Factorio\script-output\ai-player