Use your shield when reloading
If you find yourself out of ammo for both guns, use your shield while you wait for your guns to reload. When fully reloaded, deactivate the shield.
This will buy you some time and you won't take any damage if surrounded by llamas with no means to attack.