Modified SANITY_CHECK with ERROR_RELATIVE