I'm sorry to hear about your experience. It is not recommended to eat the Pop-Tarts that were heated with the wrapper on and produced sparks. The sparks indicate that there was a potential for a fire hazard, and the funny smell further suggests that the wrapper may have melted or burned.
Heating food items with any kind of metallic wrapper or foil inside a microwave can cause sparks, arcing, and potentially damage the microwave. Moreover, if the wrapper has melted or burned, it could contaminate the Pop-Tarts with unpleasant or potentially harmful substances.
For your safety, it's best to discard the Pop-Tarts and avoid consuming them. When using a microwave, always make sure to remove any packaging materials that are not microwave-safe and follow the instructions provided by the manufacturer to avoid accidents or damage to the appliance.