Error message

This might be related to you updating some other parts of your system. It seems a similar error was resovled for another user by reinstalling Stan from source:

install.packages(c("StanHeaders","rstan"),type="source")

Would that also resolve your problem?