There is justification to why Pakistani troops (mainly Punjabis of 5000 years old culture lol) surrendered to India in 1971.
East Bengal had turned against Pakistan Army (that they called Punjabi Army). Continuing with fighting would be suicidal with no objectives achieved. They surrendered, humiliated yes, but saved lives of those soldiers on whom Pakistan had invested a lot, they could have served the left over West Pakistan in future. It was an awful but smart choice. They could have carried on fighting but it would give them heavy casualties and would end up surrendering anyway.
In armed forces, dignity is important but saving lives of soldiers and their families and other civilians is more important.