db::config is pretty large (~32k) and there are four of them, blowing the stack. Fix by allocating them on the heap. It's not clear why this shows up on my system (clang 16) and not in the frozen toolchain. Perhaps clang 16 is less able to reuse stack space. Closes #14464