FIX raise memory error if constant_feature can't be realloc