Bobcat,
Since I also had a discussion of the Nebuchadnezzar Egyptian campaign from the Egyptian studies side, I thought I'd look through that too. I am not sure Toby Wilkinson is the same Wilkinson that F.C. Cook cites above. Besides "Rise and Fall of Ancient Egypt", published in 2010, Wilkinson also has a dozen or so references of his own cited, including "Lives of the Ancient Egyptians", vs "Manners and Customs of the Egyptians" noted above. In any case, in Section V - Change and Decay (1069-30 BC), chapter 21, Fortune's Fickle Wheel, Wilkinson concludes on page 417 that the Babylonian invasion setting off in 567 BC was roundly defeated.
Determining "who's on first" or who was on first back then gets tricky with remaining chronology discrepancies and conventions for naming Egyptian monarchs. In Wilkinson's system, it is described as follows with some noteworthy events:
Psamtek I, 664-610 BC
Nekau (Necho) II, 610-595
Psamtek II, 595-589
Wahibra 589-570
Ahmose II 570-526
After the defeat or fall of independent states in Syria, Lebanon and Palestine,
"Egypt was now the front line. Psamtek II's son and successor Wahibra successfully repulsed an attempted Babylonian invasion in 582, but knew very well he would need allies to safeguard Egyptian independence. Following his father's example, he looked to the Greek world, and appointed Ionian and Carian mercenaries to positions of prominence in the Egyptian army. ... deeply unpopular with the native Egyptian military, who felt increasingly marginalized by the high ranking foreigners in their midst.
"... in January 570 when a disastrous campaign in Libya led to a full-scale mutiny by the surviving Egyptian forces, Wahibra sent one of his most experienced commanders, Ahmose, to put down the revolt. By far from reimposing order, Ahmose promptly seized power and was proclaimed king by the rebels. ...By August the geneneral had been recognized as Pharaoh, a second Ahmose, throughout the western delta. ...Wahibra [after a battle that fall] fled to abroad ... to the court of Babylon. The Babylonian king, Nebuchadrezzr, could scarcely believe his luck. Here wa an unmissable opportunity to meddle in Babylonian affairs and put a Babylonian puppet on the throne of Horus.
"Realizing the impending danger, Ahmose II (570-526) took immediate measure to guard against an invasion. He concluded an alliance with the Greeks of Cyrene, ... while removing a Greek garrison in the eastern delta thought to harbor sympathies for Wahibra. Pragmatism, not ideology was was the order of the day. In 567, a Babylonian force led by the deposed king attempted to invade Egypt by land and sea, but was roundly defeated. This time there was no escape for Wahibra. He was captured and killed.... nonetheless buried with full royal honors by a victorious Ahmose..."
Subsequent political and military leadership continued to have a Greek contribution and the city of "Naukratis swiftly became the busiest port in Egypt", if that is what constitutes a 40 year desolation.
It seems to me that OT prophets invoked "desolations" much like medieval popes called for Crusades. In either case, they are enlisting the services of others: available Assyrian or Babylonian power bases or warrior classes of fuedal states respectively.
Jeremiah writes at length (e.g., chapters 43, 44) about fleeing to Egypt and then predicts calmity both for Egypt and the Judeans who seek refuge there. If that were the case over the long term, then I suspect there would not have been a Septuagint Bible.
Elsewhere I had mentioned the similar prophecies about Babylon's permanent desolation (25:12), that was to follow immediately the 70-desolation of Jerusalem. At least one contradiction within the Bible itself is the account of Ezra assembling later year returnees
Ezra 8:1
"These with their genealogies , were the heads of the familes who set out from Babylon with me in the reign of King of Artaxerxes."
A week or so ago, when I had encountered several elders at a commonly frequented local coffee house, I had pointed out that Greek and Persian records clearly indicated that Babylon was not destroyed by Persian Cyrus or hardly even sacked. It changed to new management more favored by the priests of Marduk vs. Assyrian born Naibonidus and his son. The elders said at that time in unison that they only acknowledged biblical sources.
This week, when I encountered a party of six of them, I brought Ezra up. The lead said that they would look into this matter when they got back to their KH. I told them that that was not necessary. On a piece of paper I had the above quote and several others and placed it on their table so that they all could read.
I said, "This clearly contradicts Jeremiah 25:12."
They said absolutely nothing in response.
But they did laugh among themselves as I walked away.