Whether it's SH or not depends on the intention behind it, since you didn't intend to cause damage I'd say that it wasn't SH.
It could be considered harm minimisation, a graze is certainly better than a deeper cut. It's something many 'self harmers' do to try and keep control of things.