Problem rending qmd document due to environment configurations

I recently got a new laptop so I had to reinstall R and RStudio. I keep getting this error when I try to render my file.

Problem with running R found at C:\Program Files (x86)\R\R-4.4.3\bin\x64\Rscript.exe to check environment configurations.
Please check your installation of R.

I have already uninstalled and reinstalled R and RStudio. I kept all the default settings. The environment matches the way it was installed in my old laptop but it still won't render on my new laptop.

What happens if you try running R from the command line or R GUI