When a program counter encounters an error, it can lead to incorrect or unexpected behaviours in the running program. This could cause the program to crash, produce incorrect results, or could introduce security vulnerabilities.