If you haven't already, increase your shared heap sizes, as outlined here. Mine looks like:
%SystemRoot%\system32\csrss.exe ObjectDirectory=\Windows SharedSection=1024,65536,2048 Windows=On SubSystemType=Windows ServerDll=basesrv,1 ServerDll=winsrv:UserServerDllInitialization,3 ServerDll=sxssrv,4 ProfileControl=Off MaxRequestThreads=16
If like me, you've already done that and you still run up against the limits, the best you can do is to monitor your GDI handles with GDIView and try to stay under the limits. Browsers in particular use a lot of handles.
Oh, and search for "GDI", "resources", and "instability" in the Windows 10 feedback and vote up the ones related to system resources, so that maybe the powers that be at Microsoft will pay some attention.
I'll try it... but do you think it can be this causing the random 'logoff'? I've not noticed any memory issues, and the times that these events ocurred was when I was just typing a text on texmaker. I'll also check this GDIView when I get back from work.