According to Wikipedia:
Pharaoh is the vernacular term often used by modern authors for the kings of ancient Egypt who ruled as monarchs from the First Dynasty (c. 3150 BC) until the annexation of Egypt by the Roman Empire in 30 BC.However, regardless of gender, "king" was the term used most frequently by the ancient Egyptians for their monarchs through the middle of the Eighteenth Dynasty during the New Kingdom. The term "pharaoh" was not used contemporaneously for a ruler until a possible reference to Merneptah, c. 1210 BC during the Nineteenth Dynasty, nor consistently used until the decline and instability that began with the Twenty-Fifth Dynasty.
If Abraham lived before "Merneptah", then was Genesis 12:14–20 in error applying the title " Pharʹaoh", to the king of Egypt?
Genesis 12:14-20: When Abram came to Egypt, the Egyptians saw that Sarai was a very beautiful woman. 15 And when Pharaoh’s officials saw her, they praised her to Pharaoh, and she was taken into his palace. 16 He treated Abram well for her sake, and Abram acquired sheep and cattle, male and female donkeys, male and female servants, and camels. 17 But the Lord inflicted serious diseases on Pharaoh and his household because of Abram’s wife Sarai. 18 So Pharaoh summoned Abram. “What have you done to me?” he said. “Why didn’t you tell me she was your wife? 19 Why did you say, ‘She is my sister,’ so that I took her to be my wife? Now then, here is your wife. Take her and go!” 20 Then Pharaoh gave orders about Abram to his men, and they sent him on his way, with his wife and everything he had.