There is already an open Github issue here:
That has been escalated to the Asterisk team to investigate since it seems to be some sort of interaction between Gosub and FreePBX usage.