Random Simconnect disconnected issue

I am randomly getting a simconnect disconnect. Nothing is received by my simconnect client (external), but looking at the simconnect log I see this:

51.22435 [321] Disconnected! (5, C000014B)
51.33678 [322] Disconnected! (5, C000014B)

This occurs after I have created created all my data definitions and mapped my data. I then request the user sim object before I request the data, but this is never received. Looking at the log, this is because the simconnect connection has been silently disconnected.
My external app uses two simconnect connections (connections 321 and 322), and both are disconnected. I am also running my own WASM module (connection 320) but this is not affected.

This is an occasional error, i.e. happens roughly 30% of the time when I run the app.

Does anyone have any idea what could cause this issue? What is error “(5, C000014B)”? I have seen this error before, returned from SimConnect_CallDispatch in earlier versions of MSFS. I am not receiving this error anymore, it is just reported in the simconnect log file.

I have attached the full simconnect log file.

Thanks and regards,

John
SimConnect-disconnected-ln24085.zip (905.9 KB)