Do not use aligned_alloc due to its size restriction (must be multiple of alignment).