This was a bug in RStudio, which was fixed in September 2024. The problem can be resolved by upgrading RStudio.
Given that the date of the Gihub issue and the date of this question are the same, I expect that you were the one who reported it, and so you already know the answer. However I'm leaving this answer here for anyone else (like me) who finds this question before the GitHub Issue.