There is no solution I guess. We have crossed the point of no return. Afghanistan with the blessings of India (or any other country) is going to bleed Pakistan with thousand cuts. We can either initiate full fledged war with them or keep taking the punches while slowly putting them down one by one. Of course this will severely affect our economy, peace and prosperity. All the diplomatic options have failed, unless Pakistan decides to go back to the negotiating table with the Afghan Taliban, because that's what they want.... they want Pakistan to blink first, so will our pride and ego let us do that?
Then there is the main issue of gaining support from the locals and all over Pakistan. Wars are not fought by countries where there is no or less public support or the people does not stand with the system. Unfortunately, this "system" has failed to garner support from the people and appease the public on outstanding issues like Baloch problem or KPK problem. Add the worse political turmoil that has happened for the past decade, which has also eroded the trust between the public and this system. If Pakistanis will not come out in huge numbers outside waving flags with patriotism and showing anger towards Afghanistan or TTP or BLA (which Pakistani public rarely do), then there will be no will from the nation to fight but only this system is fighting alone. Our enemies know that and that's the advantage they have... they know that what PA or govt. is doing is not popular with the people especially from KPK and Balochistan.
What other options we have???? Well as someone said, our govt. (including politicians, elites etc.), establishment, judiciary, journalists etc. form some sort of truth and reconciliation commission before the people and then come out openly with what they had done over the years and then ask for forgiveness for whatever bad things that they were involved with - Khawaja Asif has done a bit of that recently by acknowledging regrettably that Pakistan's role in Afghanistan war. Maybe this will assuage the public anger and there might be some build up of trust.