**Describe the bug**
MonetDB server crashes in `subrel_bin`.

**To Reproduce**
```sql
SELECT ( WITH x ( x ) AS ( SELECT DISTINCT 1 ) SELECT ( SELECT x FROM x WHERE x = ( SELECT ( CASE WHEN x THEN x END ) WHERE x = ( SELECT x FROM x ) AND x GROUP BY 1 ) ) FROM x );
```

**Backtrace of the Crash**
```c
#0 0x7fe3313089fb (subrel_bin+0x44db)
#1 0x7fe3313124c9 (rel2bin_project+0x1f9)
#2 0x7fe3313051dc (subrel_bin+0xcbc)
#3 0x7fe3313124c9 (rel2bin_project+0x1f9)
#4 0x7fe3313051dc (subrel_bin+0xcbc)
#5 0x7fe331305791 (subrel_bin+0x1271)
#6 0x7fe3313124c9 (rel2bin_project+0x1f9)
#7 0x7fe3313051dc (subrel_bin+0xcbc)
#8 0x7fe331304ff4 (subrel_bin+0xad4)
#9 0x7fe3313124c9 (rel2bin_project+0x1f9)
#10 0x7fe3313051dc (subrel_bin+0xcbc)
#11 0x7fe331305791 (subrel_bin+0x1271)
#12 0x7fe3313124c9 (rel2bin_project+0x1f9)
#13 0x7fe3313051dc (subrel_bin+0xcbc)
#14 0x7fe3313043b9 (output_rel_bin+0xb9)
#15 0x7fe331350a59 (backend_dumpstmt_body+0x2c9)
#16 0x7fe3313506a2 (backend_dumpstmt+0x192)
#17 0x7fe3312ec184 (SQLparser+0xf04)
#18 0x7fe3312eaa0a (SQLengine_+0xa5a)
#19 0x7fe3312e81fe (SQLengine+0x3e)
#20 0x7fe33186cb2f (runScenario+0x6f)
#21 0x7fe33186dcfe (MSscheduleClient+0xb6e)
#22 0x7fe3319b16c2 (doChallenge+0x132)
#23 0x7fe3327ceb38 (thread_starter+0x318)
#24 0x7fe3311df609 (start_thread+0xd9)
#25 0x7fe331102353 (clone+0x43)
```

**Software versions**
 - MonetDB version number: v11.49.1 (Dec2023)
 - OS and version: Ubuntu 20.04
 - From docker image monetdb/monetdb:Dec2023 (or monetdb/dev-builds:default)

An example of steps to reproduce in docker container (**write the poc into /tmp/test.sql first**):
```bash
docker container rm monetdb_test -f
docker run -e MDB_DB_ADMIN_PASS=monetdb --name monetdb_test -itd monetdb/monetdb:Dec2023
docker exec monetdb_test bash -c 'echo -n -e "user=monetdb\npassword=monetdb\n" > /root/.monetdb'

sleep 10
cat /tmp/test.sql | timeout 5s docker exec -i monetdb_test mclient monetdb     # run test case

if docker exec monetdb_test bash -c "grep '[m]server5' /proc/*/cmdline -lR"; then
    echo "[INFO] Server normal."
else
    echo "[CRASH] Mserver5 process does NOT exist."
fi
```

It can also be reproduced on the docker image `monetdb/dev-builds:default`.

**Issue labeling**
bug
MonetDB server crashes in `subrel_bin`
This is a GitHub Issue
repo:MonetDB
owner:MonetDB
Title : MonetDB server crashes in `subrel_bin`
Issue date:

--- start body ---
**Describe the bug**
MonetDB server crashes in `subrel_bin`.

**To Reproduce**
```sql
SELECT ( WITH x ( x ) AS ( SELECT DISTINCT 1 ) SELECT ( SELECT x FROM x WHERE x = ( SELECT ( CASE WHEN x THEN x END ) WHERE x = ( SELECT x FROM x ) AND x GROUP BY 1 ) ) FROM x );
```

**Backtrace of the Crash**
```c
#0 0x7fe3313089fb (subrel_bin+0x44db)
#1 0x7fe3313124c9 (rel2bin_project+0x1f9)
#2 0x7fe3313051dc (subrel_bin+0xcbc)
#3 0x7fe3313124c9 (rel2bin_project+0x1f9)
#4 0x7fe3313051dc (subrel_bin+0xcbc)
#5 0x7fe331305791 (subrel_bin+0x1271)
#6 0x7fe3313124c9 (rel2bin_project+0x1f9)
#7 0x7fe3313051dc (subrel_bin+0xcbc)
#8 0x7fe331304ff4 (subrel_bin+0xad4)
#9 0x7fe3313124c9 (rel2bin_project+0x1f9)
#10 0x7fe3313051dc (subrel_bin+0xcbc)
#11 0x7fe331305791 (subrel_bin+0x1271)
#12 0x7fe3313124c9 (rel2bin_project+0x1f9)
#13 0x7fe3313051dc (subrel_bin+0xcbc)
#14 0x7fe3313043b9 (output_rel_bin+0xb9)
#15 0x7fe331350a59 (backend_dumpstmt_body+0x2c9)
#16 0x7fe3313506a2 (backend_dumpstmt+0x192)
#17 0x7fe3312ec184 (SQLparser+0xf04)
#18 0x7fe3312eaa0a (SQLengine_+0xa5a)
#19 0x7fe3312e81fe (SQLengine+0x3e)
#20 0x7fe33186cb2f (runScenario+0x6f)
#21 0x7fe33186dcfe (MSscheduleClient+0xb6e)
#22 0x7fe3319b16c2 (doChallenge+0x132)
#23 0x7fe3327ceb38 (thread_starter+0x318)
#24 0x7fe3311df609 (start_thread+0xd9)
#25 0x7fe331102353 (clone+0x43)
```

**Software versions**
 - MonetDB version number: v11.49.1 (Dec2023)
 - OS and version: Ubuntu 20.04
 - From docker image monetdb/monetdb:Dec2023 (or monetdb/dev-builds:default)

An example of steps to reproduce in docker container (**write the poc into /tmp/test.sql first**):
```bash
docker container rm monetdb_test -f
docker run -e MDB_DB_ADMIN_PASS=monetdb --name monetdb_test -itd monetdb/monetdb:Dec2023
docker exec monetdb_test bash -c 'echo -n -e "user=monetdb\npassword=monetdb\n" > /root/.monetdb'

sleep 10
cat /tmp/test.sql | timeout 5s docker exec -i monetdb_test mclient monetdb     # run test case

if docker exec monetdb_test bash -c "grep '[m]server5' /proc/*/cmdline -lR"; then
    echo "[INFO] Server normal."
else
    echo "[CRASH] Mserver5 process does NOT exist."
fi
```

It can also be reproduced on the docker image `monetdb/dev-builds:default`.

**Issue labeling**
bug
--- end body ---
