I had this same error while installing the package directly through installation window. Mistake which i made was that i downloaded the wrong package. (For Apple silicon (M1,2,..) Macs:
R-4.5.0-arm64.pkg SHA1-hash: a47d9579664f0ca878b83d90416d66af2581ef9c
(ca. 97MB, notarized and signed))
Since i am using macOS i had selected Apple Silicon package to install, but if you are using a macOS you need to download package for Intel Mac if your macOS has Intel processor - For older Intel Macs:
R-4.5.0-x86_64.pkg SHA1-hash: d1121c69451118c6e43d66b643c589008340f3e7
(ca. 100MB, notarized and signed)
R package download page screenshot
Using right package solved my problem and i was able to install R console smoothly on my macOS.
I used <https://mirror.niser.ac.in/cran/>link to download the package for R console.