That position from the military, if true, is completely unacceptable.
The Army does not have a monopoly or control over foreign policy, the elected government does.
If this was a reason behind the Army leadership conspiring with the PDM to overthrow the PTI government, then that still amounts to treason and a betrayal of Pakistan.
Your comment below is absolutely correct and paints an unfortunate picture of the state of affairs in Pakistan and one institution's monopoly over the system. Even with his flaws, Imran Khan's honesty, patriotism and desire to improve the country was never in doubt. He was as close to perfect as we could hope for to FINALLY end the monopoly of the military over the country, and sadly the short sighted policies of the leadership of that institution have severely damaged the chance for Pakistan to finally change the system.
What Quaid said, all good captions and quotes, who should run the foreign policy, Army should be under the command of PM and all that, in reality, Pak military owns the country and they are the ones who drive the state policy whether you like it or not. Once you deviate from it, you will face the consequences. IK absolutely did the right thing. Praising someone's independent policy won't make you a traitor however, in reality, our govt(s) are working under extreme pressure and hostility.