Write a Python script to parse a large log file and extract specific error patterns without loading the entire file into memory.