Welcome @Rahmaa, to the community!
With your specification of 12V, 500mA, we are talking about an output power of 6W, which corresponds to an input power of 8.7W assuming an efficiency of 69%. With these power ratings and the voltage range, you will hardly be able to achieve stable operation, as I have already mentioned several times here in similar projects, e.g. here.
My recommendation: use a transformer and let the VIPER318 work as a flyback, then the design will be considerably simpler, more stable and easier to manage thermally, and you will also have galvanic isolation of the output voltage as a bonus.
Hope that helps?
Regards
/Peter