Don't know. There might be more wrong.
Might be the wrong schottky diode, or the wrong type of capacitor, or your wires are too long/thin, or you use a breadboad, or your PWM frequency is too low (you used a 22uH inductor instead of 330uH), etc.
It's not easy to make a good buck or boost converter.
Leo..