https://www.thenews.com.pk/print/243037-If-convicted-will-Nawaz-get-a-presidential-pardon
While this is not an original thought, the current health of the former prime minister and the unrest his death in prison may cause should make the Prime Minister consider some kind of pardon for the Prime Minister in exchange for a confession of bad judgement and request for forgiveness from the people. To show his sincerity, he can donate to legitimate charitable causes of his choice. Some may see this as a way for him to purchase his freedom, but hear me out. His party is devastated politically and with former leader in jail on corruption charges, the PML-N will not be able to rid itself of the image of so corrupt they ended up in jail.
While he might get out for some time for medical treatment, his party would suffer seeing him brought in and out of prison. If he expunges this conviction with a pardon, he can retire in London, and his party can move on.
For the Prime Minister, while letting PML-N off the hook can be dangerous in the long run, the effect of Nawaz Sharif dying in Prison will cast a shadow over the PTI government all the way until the next election. PNL-N party workers would more viamently obstruct reforms, and people may see the prime minister as jut another vindictive leader.
If the Prime Minister's government pardon's Nawaz Sharif, in exchange for the above terms, Imran Khan can be see as a merciful leader, to some people too naive, but never a murderer. A major concession could be PML-N and its party apparatus promising to not interfere in reforms in the Punjab specifically, and the nation as a whole generally. PML-N would also not partner with PPP to support them undermining reforms either.
Its a hard decision to make, but in Naya Pakistan, new thinking is needed to create long lasting change.