Started getting "the r session had a fatal error" when launching R Studio

I am encountering the error message 'The R session had a fatal error' every time I launch RStudio. Despite uninstalling and reinstalling both R and R Studio 4.2.2, and restarting my computer, the error persists. Can you offer any suggestions on how to resolve this issue?

Sometimes resetting RStudio Desktop's State can help.

Are you restoring your environment on startup? Delete any RData file in your default working directory.