As a workaround for this error, queries which make use of lateral joins must be avoided or rewritten.
As of version 6.26.2, the error has been resolved, preventing the queries from resulting in a PANIC.
v6.26.2
370114, 345498
Resolves an issue where passing through parameters by a motion caused the database to panic. The fix prevents external parameters from being passed through.
Release Notes: https://docs.vmware.com/en/VMware-Greenplum/6/greenplum-database/relnotes-release-notes.html#release-6.26.2