After running WordCloud function R studio stop responding. I have terminate the session but nothing works, restated my machine but no help

You didn't said that before, if this happens when you run the script again then is possible that you are just running out of RAM memory but I can't be sure without a REPRoducible EXample (reprex)