Use 'groan with' when someone is reacting to physical pain or strain. She groaned with effort as she lifted the heavy boxes.
Pro Tip 2/2
Not Necessarily Vocal
'Groan with' doesn't always mean a loud sound; it can be quiet, reflecting endurance. Under the weight of his backpack, he groaned with discomfort, more to himself than anyone else.