Rstudio IDE crashing when file indexing on windows

pausing onedrive seems to help. Is there a workaround for using onedrive and the IDE?