People are so different, so I can't dependably suggest what you should do. I've been married twice, because I lost my first wife to an illness, so I have the experience of two different spouses.
If I'd been on my game, I think I would have been jovial and grateful on the occasion itself, so she doesn't feel she's being rejected. Then give it a day, and on the second day, in a pleasant way, just say these pipes are not good to smoke, and ask if she could return them to Amazon, unsmoked of course. And walk her through the selection of an appropriate pipe of around the same price.
Kaywoodie makes good pipes for about $45 that would fill the bill, so she knows the price isn't the problem. Or Dr. Grabow, or Rossi, etc. Gently point out the preferred features. This is a pipe made out of a special wood, briar. It's designed by a known brand. It's been around for about 80 years. And offer to help with selections of your gifts in the future, explaining that the surprise isn't the main consideration.
Then make sure you take similar care with her presents. When my wife comments on liking something a lot, I jump on that even if the holiday is a long way off, and even if I have to give away the surprise to get the information. Once you both get the hang of this, I think you'll be off to the races.
Gifting is extremely personal and is a chance to let each other know you are really paying attention. It's a good way to get to know each other better, and to identify with your mate.