When a check uses system.run, the agent logs an error:
unable to set job info: [0x00000057] The parameter is incorrect.
Found that error text on line 305 of /src/libs/zbxexec/execute.c
Seems to be a problem with the parameters of SetInformationJobObject.
Looks like the bug originated when this Job Object code was added in