The goblins should only come down one at a time, allowing you to fight them individually. If they're all swarming at you together then something might be broken. If you've been killing the goblins up until the fight then you should also level up in the middle of the encounter, refilling your health.
If it's just too difficult aside from all that then it wouldn't be an issue to just add a health potion before the fight.