The issue can be observed with the following reproduction:
Note that if you keep the STATIC Event in step 1, the issue does not happen.
This is a defect
Solution:
Update to a fix version listed below or a newer version if available.
Fix version:
Component(s): Automation Engine
Automation.Engine 24.2.0 - Available
Automation.Engine 21.0.12 - Available
The reference for the fix is: AE-35598