As an adult, the only risks for HIV are:
1) having unprotected, penetrative vaginal or anal sex, or
2) sharing IV drug needles with other IV drug users.
A safety pin is NOT a hollow bore needle, like an IV needle. There is no comparison. There is absolutely no detail you could add to this event that would make it a risk for HIV.
Waiting for your kind advise