The magic number seems to be however 12.
When opening only 11 windows, mIRC doesn't crash.

I hope this bug isn't exploitable :|
I am trying to let it crash remotely now.