Given a large log file, write a function to parse it and return the most frequent error messages.
Accept log_lines as an iterable of strings in the format LEVEL|message, and count only ERROR entries. Return the top k messages as [message, count] pairs, ordered by descending count and then ascending message text.
def most_frequent_errors(log_lines, k):