Hi , and welcome! We appreciate your post and question - it's a good one!
Almost anything that is electrically powered can produce sparks. However, generally speaking, sparking typically occurs when the device is not working properly, has a leak, a malfunctioning electrical cord, a faulty electrical outlet and those sorts of device integrity concerns.
The danger of using supplemental oxygen when an electrical device is operational is the errant spark may cause a fire hazard. This is because medical oxygen is a gas that supports combustion.
You may gain some additional insight from this article, which speaks to the safety concerns when using oxygen in the home: https://copd.net/living/dos-donts-supplemental-oxygen. I do hope you find the information is helpful in a practical way.
All the best,
Leon (site moderator COPD.net)