I came across this error on a Windows 7 desktop for an Instrument. This error popped up everytime they opened LIMS. Found that the hard drive had 0GB available. A disk cleanup only freed up 1GB - deleted all the files in the Windows Temp folder which was loaded with files up to 10+ years old. It freed up 145GB of space. LIMS works now and doesn't give the stack overflow error