Error message: Fatal error: Unexpected exception: bad allocation

The below keeps populating. I don't know how to get rid of the error. Restarting and reloading the software isn't working. Please help....

Fatal error: Unexpected exception: bad allocation

Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : namespace ‘xfun’ 0.41 is being loaded, but >= 0.43 is required

See if install.packages(xfun") fixes it.