Hi,
Never saw anything similar. As a first thing, I would try opening the file in a text editor (e.g., notepad) to see if it opens properly. In that case, I'd try saving with a new name and open the new file in RStudio. If it still does not work, then it may be some RStudio bug. In that case, knowing your RStudio version and session info could help.