Instead of SIGFPE when bytespersample is zero or negative, return OV_EINVAL