I have not had that problem, but I don't have a lot of meat at that part of my hand. I work at a range and see a lot of guys with big meaty hands who just cannot shoot some guns -- e.g., those little 380 Wathers with the sharp edged slides that come down too far over the frame. The guys will be holding the gun perfectly and still get cut.
Suggestion: The hammer on the Ruger SR22p has some fairly pronounced nubbs on it -- would it help to file off the lower nubbs that make contact with your hand. When you cock the gun -- those don't even come into play. A little cold blue touch-up and nobody would ever notice.