There are several ways you can try to stop Zombie PigmenZombie Pigmen from spawning in the nether by breaking their spawn rules:
- Place half-slabs on every spot you do not want them to spawn on.
- Replace the NetherrackNetherrack or Soul SandSoul Sand with glass, or any transparent material.*
- Make sure everything is 1-block high. (Though it'll then be nearly impossible to treverse around).
You can't do anything regarding light levels as Zombie Pigmen spawn in any light condition.
*You can do this to the surrounding area of an overworld portal to prevent them from spawning there.