RStudio on MAC M1 won't start - The R session failed to start.

I am installing R and RStudio in a MacBook Pro with an M1 MAX chip.

After installing R and then RStudio, when opening R I get the message that the R session failed to start.

I am running macOS Monterey, 12.6.1 (21G217).

Does anyone have any idea of why this would be happening? I have installed both R and RStudio in another M! Mac and had no problems, with the same OS version.

Any help would be greatly appreciated.

Here is the Problem Report.

R Session Startup Failure Report

RStudio Version

RStudio 2022.07.2+576, "Spotted Wakerobin" (e7373ef8, 2022-09-06) for macOS

Mozilla/5.0 (Macintosh; Intel Mac OS X 12_6_1) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36

Error message

[No error available]

Process Output

The R session exited with code 1.

Error output:

[No errors emitted]

Standard output:

[No output emitted]