blue balls

lately my bf has been in a lot of pain after he does stuff to me or if he gets turned on with me and like apparently its called blue balls. how do i help him with this?? i mean i get like sex and stuff but i mean like how else can i make him feel better (he doesnt do this so ill have sex with him tho). he was struggling to walk today and he was in so much pain and i didnt know how to even help.