A common problem with Raspberry Pi is 5V sagging due to voltage drop in the polyfuse at the microUSB power input jack. You can get stuck in a reboot loop if Vcc sags too much when the CPU current drain goes up.
MF-MSMF250/16X is 2.5A hold, 5A trip and 0.015-0.1 ohms. I just short the PTC out with a jumper and run them off a ~2A adapter. I would not run 5A through a Pi...
Raspberry Pi 3 model B, B+ has
MF-MSMF250/X at the USB power jack.
Raspberry Pi 2 model A+, B has MF-MSMF200/X at the USB power jack. These have big voltage drops.
There is no polyfuse on the Pi Zero.
Raspberry Pi schematicsThere are 5V buck converters good for over 5A which use TPS40057 and synchronous rectification. Much better than
XL4005. Lately I use QSKJ 8A four port USB charger boards, from Ali or eBay etc. These have TPS40057, two DPAK mosfets and 8-35V input, fuse, TVS etc. and output ~5.2V
https://www.electrodragon.com/product/dc-dc-buck-4-usb-charger-module-8aKIM-055L heats up past 4A.