In ConvertImageND.cxx, the computation of sz is wrong due to a misplaced parenthesis.
It changes the dimension by one in case of small spacing.
The change is small:
sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i]) / vox[i]);
should be
sz[i] = static_cast<size_t>((0.5 + sz[i] * m_ImageStack.back()->GetSpacing()[i] / vox[i]));
I can create a PR if needed