What you are thinking of is a Saudia Arabia, UAE type society as an ideal correct? That maybe if Pakistan went fully conservative Islam with sharia it would correct its flaws?
My friend, Saudi, Iran and UAE and Qatar all these countries have a lot of oil money to keep everyone happy. Do you know what they do for a weekend? They come to London to shop, eat and f**k. That's how they pass their time as peaceful Muslims rather than rioting on the streets over technicalities.
That's the difference, so unless you strike oil this is simply an unrealistic dream for Pakistan, just look at Afghanistan under Taliban. Its a failed experiment, if Pakistan did the same it would be goodnight for you, it would become a Yemen or Somalia.
The best Pakistan can aim for is Malaysia. That place is conservative but has enough of everything to keep everyone happy. Tourists are happily drinking in bars in downtown KL or Penang. There's things to do, the atmosphere is light and welcoming. Its conservative yet not judgmental. Aggression is low, crime is low. This is a good aim.
These men are just frustrated with life, that's why they are out on the streets over literally nothing. I would get it if it was price increases or something but this is men that never grew up sadly. Put them in re-education camps and teach them skills so they can become busy with their days.