I got this error and solved it by updating rstan so likely rstan or one or more dependencies is causing this with your version of brms.