I used one very similar to the above on one of my marker lights, except it was a tri-Fold Exploding rivet, also available on Amazon. The strength/force is distributed over a wider area of fiberglass than a traditional rivet.
Racer's Speed Shop White 3/16" Small Head Tri-Fold Exploding Aluminum Mandrel Pop Rivets
I did not need to remove the headliner inside. In fact, the one I replaced was on the rear cap with no discernible access.
Just be sure NOT to let the wiring fall into the cap when cutting off the old marker and connecting it to the new. Take some serious steps to avoid it dropping. I did not have a problem, but I was very, very careful.