how to choose diode for PWM of high amperage solenoid?
Change the diode to something that's rated for more than 18 amps.
If you need the voltage drop of the zener for a fast turn-off, then replace it with a resistor. Choose the value to give you the voltage you want at 18 amps. Choose the power dissipation to meet the average power that it's being subjected to.