Help.. breastfeed baby - teething

Amy
My lo is almost 5 months old and has been teething for a few weeks. All of a sudden he has started biting my nipples holding between gums pulling them. ugh they are starting to hurt so bad may have to give up the breast and just pump. Anyone have any pointers as to get him to not bite chew