This is a well reported problem here in the forum, and is to do with the P3D V4.2 update which introduced a bug. This bug means that the last number you press in the sim, is sent to GSX (or any other simconnect window) when you open it. I have been trying to find a way around this including not pressing any numbers, but this was to no avail.
This specific error it's another issue, and shows the user has updated to the last version, but only *partially*.
The error log show the program code (the Python script that reported the error) HAS been updated, but the Couatl.exe, which is required to be updated too for the script to work, HASN'T, since it's still the previous version (3894, while the current one is 39xx).
Since the Live Update will download both at the same time, it's not normally possible to get some newer files and old ones so, it's more likely the antivirus has mistakenly blocked the download of the current Couatl.exe file.
The correct solution, as explained so many times, is to exclude the whole Addon Manager folder from scanning in the antivirus settings, and try Live Update again, from its Desktop icon, when the sim is not running.