It looks like the issue in the code which you wrote. Most of the times, this kind of issue occurs when there is some loop which goes on continuously and make the error as 'Stack overflow exception'. Because when some loop runs continuously, the memory gets filled completely which causes this error to be displayed.
You need to check what code is there which is causing this error. There could be any ajax call which is calling continuously. Try using developer tool to find the requests making from browser.
Hope it will be helpful to you.
Pawan Awasthi(DNS MVM)
+91 8123489140 (whatsApp), +60 14365 1476(Malaysia)