Just under a year has been since this post was made and recently I have been getting the exact same issue. I have tried everything mentioned in the post to attempt to fix with no avail.
When my R hangs after a varied amount of time a pop up box quoting "R Code execution error" appears and the console displays - Error: node stack overflow.
I am not using anything too CPU heavy simply loading data (from network folders) then using tidyverse processes on it (dpylr, ggplot etc).
I am using R version 3.5.0 on Windows 10
Is there any update on this issue? Thanks