groan with (something)
To utter a groan for a particular reason (stated after "with"). The patient groaned with discomfort as the doctor examined his injured leg.
groan with something
to groan because of something, such as pain. She groaned with pain, but no one helped her. I think the old man was groaning with boredom more than anything else.