The current company task parameter has not been specified Unable to Process Task

Hello Guys,

I am coming across this error when I am trying to process a custom process.
I created a Task using GetNewSysAgentTask and I am passing these parameters which will run a Custom DLL.
image

Now the issue I face is very rare out of 100 Submission of process this error occurred only twice.

I tried a solution where I am copying these parameters everytime systaskparam is creating a row it always copies correctly even if it goes in error.

I want to understand the backgroud of this error.

TIA