Смотрите внимательнее.
Все есть в component.php (/bitrix/components/bitrix/main.register/component.php).
Проследите как заполняется массив $arResult["ERRORS"].
Все есть в component.php (/bitrix/components/bitrix/main.register/component.php).
Проследите как заполняется массив $arResult["ERRORS"].