groan

He groaned in/with agony.
He groaned in/with pain.
Please correct the above.

‘Groan in pain’ is usually the standard term, but all are acceptable as you’ve written them.