Unfortunately I don't have a solution, just wanted to say I have been having the same issue for the last month+ :( I have gotten to the point of disabling copilot in RStudio (I'm running R 4.5.1 in RStudio 2025.05.01) to avoid the issue. My colleagues are successfully using copilot in RStudio without this issue. I am very hopeful that someone else can provide a solution!!!