Remiy,
I have no idea what that "recipe" is, but it is not very traditional in the African-American hoodoo tradition. It looks like what i call "throw in everything."
I will comment on the ingredients:
Pink salt -- why pink? just use table salt.
Pumpkin spice -- this is usually used as a simple shortcut or money spells, not protection.
Cedar -- good for protetion of the home.
Nettle leaf -- good for taking off jinxes.
Mugwart -- spelled Mugwort (wort is old English for "root"); generally used to enhance psychic abilities.
Black pepper -- good for protection from evil.
Basil -- good for protecting the home from evil.
Rosemary -- good for strength of women and guarding the home.
Bay leafs -- good for wisdom, a calm mind, invisibility from attack, and protection
Thumbtacks -- used in witch bottles, but this does not fully resemble a witch bottle; see below.
A picture of me -- no reason to put YOURSELF in a bottle with tacks, nails, needles, or pins.
Clear quarts -- healing stone but not traditional in old-school hoodoo.
And incense smoke named Nag Champa. I added the incense myself and impulsively I also only had Nag Champa on hand: -- okay
So it looks to me like whoever gave you this spell had confused a witch bottle with a protection spell. They are similar, but different. For a witch bottle, you would have used sharp items, nails, pins, needles, broken glass or mirrors, broken razor blades, taks, and so forth, plus urine and a hair. In hoodoo, such a bottle made on a kown enemy (with their hair and urine) will destroy them. Such a bottle is usually buried in the fireplace or around the chimney.
Putting your own photo in with tacks is what gave you the headaches. The spell did not "backfire," you just jinxed yourself!
Undo the jar and either burn the contents or throw it into running water. You an save the quartz and the glass jar, but wash them off.
Read this thread from the beginning for a lot of great discussion from experienced practitioners on the topic of how, when or if spells "back-fire" and stick around here and you can learn a lot more authentic spells than that one, if hoodoo is your interest.
Another place to read more on the topic of "back-firing" spells is on this web page i wrote:
IF I CAST SPELLS INCORRECTLY WILL THEY "BACKFIRE" ON ME? by catherine yronwode
http://www.luckymojo.com/spells/real.html#10
Good luck.