How to increase stack size for unreal engine?

Yes, look at VCToolChain.cs where it passes the /STACK argument and increase that.

We added extra code to make it more configurable, but basically that’s where you do it.