Recharge your shields with sodium and try to engage the pirates one at a time. Avoid engaging with all of them at once.