Since in h5cpp we don't expose raw pointers usage of from_buffer(data, flags) with ImageFlags::DONT_COPY and without ImageFlags::DONT_RELEASE always ends with
double free or corruption (!prev)
Aborted
To protect against the situation we check this a-priory and thew an exception.