I was finally able to resolve the same issue by a simple solution with credit to Du Nguyen here!
just from "C:/Documents" find this file named ".Renviron", which could be hidden, and delete it. Everything will work normal!