Corrected memPartAlignedAlloc error handling