Stoch_simul error in Dynare 6.0

I run a stoch_simul as below after estimation:

,mh_replic=50000, prefilter=0, mh_nblocks=1, mh_drop=0.50, mh_jscale=0.55
,conditional_variance_decomposition=[1 3 5 7 10 15 20 25 30]
,tex) ln_y ln_cp ln_cg ln_ivm ln_ig ln_ip ln_h;

            conditional_variance_decomposition=[1 3 5 7 10 15 20 25 30 35 40]) 
            ln_y ln_cp ln_cg ln_ivm ln_h ln_ig ln_ip;

It currently works fine in the old Mac OS Big Sur with Matlab 2020a and Dynare 4.5.7 but reports error in Mac M1 with Matlab 2023b and Dynare 6.0. The model has 4 shocks but is estimated with 6 series so it implies 2 measurement errors.

Could anyone please give me a hint to correct this error in Dynare 6.9?

Many thanks,

Index exceeds the number of array elements. Index must not exceed 4.

Error in dyn_latex_table (line 116)
fprintf(fidTeX, label_format_leftbound, labels{i});

Error in stoch_simul (line 154)
dyn_latex_table(M_, options_, my_title, ‘covar_ME’, headers, labels, M_.H, lh, 10, 6);

Error in PS2022.driver (line 1209)
[info, oo_, options_, M_] = stoch_simul(M_, options_, oo_, var_list_);

Error in dynare (line 310)
evalin(‘base’,[fname ‘.driver’]);

Can you please provide me with the file to replicate the issue. This looks like a bug.