R encountered a fatal error - The session was terminated

Hi, I was normally using Rstudio but when a switched to another project this happened.

error R

Anyone would know why this happened and what I should do?