indicates another missing dependency to be installed, probably by
BiocManager::install("GenomeInfoDbData")
macOS, R packages and RStudio should be kept roughly synchronized. It is usually not necessary to be at the latest point release, but problems begin accumuating as one or more installed versions begin lagging by a major release.
In addition, macOS suffers from a default configuration that does not include tools required to compile packages from source, when that is necessary. (Most packages are available in binary form, but not always).