R encountered a fatal error

I am using R studio to run some code. This code worked fine yesterday and I have not made any changes to the code, but now every time I run it I get and R encountered a fatal error and am forced to start a new session. I have tried uninstalling/reinstalling R and R Studio, but it keeps crashing. Here is the error message from the diagnostics-report:
ERROR system error 232 (The pipe is being closed); OCCURRED AT: void rstudio::core::http::AsyncClient::handleWrite(const boost::system::error_code&) [with SocketService = boost::asio::windows::basic_stream_handle<>] C:/Users/Administrator/rstudio/src/cpp/core/include/core/http/AsyncClient.hpp:330; LOGGED FROM: void rstudio::desktop::NetworkReply::onError(const rstudio::core::Error&) C:\Users\Administrator\rstudio\src\cpp\desktop\DesktopNetworkReply.cpp:288

Any suggestions would be appreciated.

Could you please include a reprex (short for minimal reproducible example), or at the very least the code that you are running that's leading to the error?

Does the code run if you use R alone (i.e. in R outside of RStudio)?