Help pls!

I was riding my boyfriend yesterday and he had to stop me bc he said his "thing" was hurting. He told me that the last time we did it I hurt him also. He described the pain as a chafing feeling on the skin under his head that made it extremely sensitive. Has anyone gone through this and if so what caused it and how can we provent it