Session aborted and segmental fault using control=list(...) as argument

I was running simple nonlinear regression on R stan. The when I add argument control=list(max_treedepth=15) to the stan function. The system crashes. This happens repeatedly.

init_fun <- function(...) list(k=nlr.summ$parameters[1], mu=nlr.summ$parameters[2], r=nlr.summ$parameters[3])

data <- list(N=N, y=y, t=t)
fit <- stan(file='./SDCSCOV/lulu1u1d.stan', data=data, init=init_fun, iter=3000, control = list(max_treedepth = 15))

I tried it in terminal, same error happened. My device is Apple M1.

Is there any possible solutions or suggestions to this?

The current workaround is to use the preview of the next rstan version:

remove.packages(c("StanHeaders", "rstan"))
install.packages("StanHeaders", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))