Here is also a part of debug output if it helps. As mentioned before the script stops working around Counter 26.
Processing frame number: 1
Added frame seq 1
[18443010A101660F00] [6.2] [1.846] [Script(4)] [warning] New msg frame, seq 1
[18443010A101660F00] [6.2] [1.876] [Script(4)] [warning] New msg detections, seq 1
[18443010A101660F00] [6.2] [1.877] [Script(4)] [warning] synced 1. Removed older sync values. len 0
[18443010A101660F00] [6.2] [1.878] [Script(4)] [warning] Frame sent to recognition. Counter 1
[18443010A101660F00] [6.2] [1.879] [Script(4)] [warning] Frame sent to recognition. Counter 2
[18443010A101660F00] [6.2] [1.881] [Script(4)] [warning] Frame sent to recognition. Counter 3
[18443010A101660F00] [6.2] [1.881] [Script(4)] [warning] Frame sent to recognition. Counter 4
[18443010A101660F00] [6.2] [1.892] [Script(4)] [warning] Recognition result received. Counter: 3
[18443010A101660F00] [6.2] [1.897] [Script(4)] [warning] Recognition result received. Counter: 2
[18443010A101660F00] [6.2] [1.902] [Script(4)] [warning] Recognition result received. Counter: 1
[18443010A101660F00] [6.2] [1.907] [Script(4)] [warning] Recognition result received. Counter: 0
Added detection seq 1
Processing frame number: 2
Added frame seq 2
[18443010A101660F00] [6.2] [2.918] [Script(4)] [warning] New msg frame, seq 2
[18443010A101660F00] [6.2] [2.936] [Script(4)] [warning] New msg detections, seq 2
[18443010A101660F00] [6.2] [2.937] [Script(4)] [warning] synced 2. Removed older sync values. len 0
[18443010A101660F00] [6.2] [2.939] [Script(4)] [warning] Frame sent to recognition. Counter 1
[18443010A101660F00] [6.2] [2.939] [Script(4)] [warning] Frame sent to recognition. Counter 2
[18443010A101660F00] [6.2] [2.941] [Script(4)] [warning] Frame sent to recognition. Counter 3
[18443010A101660F00] [6.2] [2.942] [Script(4)] [warning] Frame sent to recognition. Counter 4
[18443010A101660F00] [6.2] [2.944] [Script(4)] [warning] Frame sent to recognition. Counter 5
Added detection seq 2
Processing frame number: 3
Added frame seq 3
[18443010A101660F00] [6.2] [3.926] [Script(4)] [warning] New msg frame, seq 3
[18443010A101660F00] [6.2] [3.946] [Script(4)] [warning] New msg detections, seq 3
[18443010A101660F00] [6.2] [3.947] [Script(4)] [warning] synced 3. Removed older sync values. len 0
[18443010A101660F00] [6.2] [3.949] [Script(4)] [warning] Frame sent to recognition. Counter 6
[18443010A101660F00] [6.2] [3.949] [Script(4)] [warning] Frame sent to recognition. Counter 7
[18443010A101660F00] [6.2] [3.951] [Script(4)] [warning] Frame sent to recognition. Counter 8
[18443010A101660F00] [6.2] [3.953] [Script(4)] [warning] Frame sent to recognition. Counter 9
[18443010A101660F00] [6.2] [3.955] [Script(4)] [warning] Frame sent to recognition. Counter 10
…