Occasional loss of process variables

Dear teachers:
During the process of using Flowable 6.7.2, after running the process on the server for a period of time, nodes with multiple instances occasionally experience loss of process variables, resulting in the task being unable to be completed. I have been searching for a long time but have not found what problem is causing it. May I ask what the reason may be, teachers?

I found that this task exists in the act_ru_task table, and except for the missing variable, all other data is normal

When I try task.complete(taskId) , Throw Exception info:
FlowableException: Unknown property used in expression ${nrOfActiveInstances == 0}

I tried manually inserting this variable into the act_ru_variable, and the task was completed, proving that the variable was indeed lost