Backport PR #46358 on branch 1.4.x (CI: Debug Windows stack overflow)
Backport PR #46358: CI: Debug Windows stack overflow
marked as draft as will probably create a single PR with several CI related backports otherwise will take ages with CI cycle waiting for each one until can autobackport the next. closed in favor of #46559