R has problems with synced folders, I recommend you to set your user-leve package library in a non-synced folder or install into the system level package library instead. You can change the defaul location by setting your R_LIBS_SITE environmental variable on a .Reviron or .Rprofile file
# In .Renviron file you can set it this way (change the R version as needed).
R_LIBS_SITE="C:\\Program Files\\R\\R-4.0.2\\library"
For a more detailed explanation, you can read this blog post