Solved following
Rstan build error (new 2.26.1): validate_dims is not a member of stan::io - Developers - The Stan Forums (mc-stan.org)