R has problems with setting the package library in a cloud-synced folder (OneDrive) and also folders with non-ASCII characters in their path, you are using both. I recommend you to change your default package library to a non-synced folder wich path contains ASCII characters only.
You can change the default library folder by setting your R_LIBS_SITE environmental variable in a .Reviron or .Rprofile file. For example:
# In a .Renviron file you can set it by adding a line like this one with the desired location
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library"
For a more detailed explanation, you can read this blog post