R session aborted all the time

Does this also happen if you execute your code in the R GUI (not RStudio)? Can you try to provide a REPRoducible EXample (reprex) illustrating your issue?