Here is my schematic:

Vds when Vin = 12V

Vds when Vin = 20V

Vds when Vin = 30V

My switching frequency is 50kHz, duty cycle is 0.5
When Vin = 12V, the buck converter worked properly, but when I increased the input voltage from DC power source, the Vds got distortion, so why appear this problem? and How to solve it? Thank you very much.

Vds when Vin = 12V

Vds when Vin = 20V

Vds when Vin = 30V

My switching frequency is 50kHz, duty cycle is 0.5
When Vin = 12V, the buck converter worked properly, but when I increased the input voltage from DC power source, the Vds got distortion, so why appear this problem? and How to solve it? Thank you very much.