From Old Spanish yerrar, a variant of errar, from Latin errāre. Related to English error.
yerrar (Latin spelling)