Fixed in 6.19.0 and above.
Fixed in 5.29.2 and above
See issue 31887 in the respective Release Notes for the versions.
1. Temporarily increase the ACTIVE_STATEMENTS limit for the queue to allow for the incorrect Active Statementcount
2. Restart Greenplum to clear the Active Statements count.