Workflow-durable-task-step plugin disconnects the connection between jenkins master and the agent

There is a random disconnection between the controller and the agent with the error: “also cancelling shell steps.”
And Cannot contact <node_name>: java.io.IOException: cannot find current thread

The plugin kills the connection thread between the agent and the controller. It happens randomly in the builds.

As a workaround, I had to revert to version 371.vb_7cec8f3b_95e, which works fine. However, I’m currently blocked on this version due to this problem.

Could you please provide guidance or suggest a solution to resolve this issue?