internal/v4: fix search error handling