DSGE weird error

I do not know what the following error (if you can call it that) refers to:

dynare MEDEA1
Starting Dynare (version 6.3).
Calling Dynare with arguments: none
Starting preprocessing of the model file …
Assertion failed: (node_list.size() == d.node_list.size()), function operator=, file DataTree.cc, line 114.
“/Applications/Dynare/6.3-arm64/matlab/…/preprocessor/dynare-preprocessor” MEDEA1.mod mexext=mexmaca64 “matlabroot=/Applications/MATLAB_R2024b.app”: Aborted
Preprocessing time: 0h00m00s.
Error using dynare (line 297)
Dynare: preprocessing failed

I am relatively new to this so if someone could point me in the right direction it would be very much appreciated.
MEDEA_ld_ss.m (1.1 KB)
MEDEA1.mod (56.9 KB)

This is a weird corner case happening due to Dynare’s internal optimization. We don’t yet have a fix, but you can get around it by replacing

#zbW_bar	=	STEADY_STATE(zbW);

by

zbW_bar= 0;

This is necessary because you shut off the shock:

% 63. risk premium shock (inactive due to non-stationarity problems)
%(zbW) = rhobW*(zbW(-1))+ sigmabW*epsbW;
(zbW) = 0;