My hat pins either get pushed into the knot of a bow and gel glue added so no sharp ends or if I have a backing paper mat added to a base card then I push the pins in between the layers and add some foam tape to the pins sticking out and then they are covered when added to the base card.

I hope you get sorted
Suzanne x