So when I connect a servomotor to the output of the buck converter, for some reason the voltage drops to 2.2 V. I believe it is some kind of current limitation. I also tried putting an 8 Ohm resistor at the output instead, and the voltage was still not 5.0 V. However, when I put a 10kOhm resistor at the output, it works perfectly fine so my theory is some kind of current protection is causing the issue with the output voltage.