Remove VLA in favor of std::array, don't exit from inside a library