Are there drugs that can prevent Narcan (naloxone) from working?

Depends. Not to my knowledge. However a large enough dose of narcotics may overwhelm a given amount of narcan (naloxone).
Some uncommon ones. Base on the known literature, only a few lesser-used drugs have been found to have any interaction with narcan (naloxone). They are all in the cannabinoid drug class, and are used for things like pain associated with multiple sclerosis (ms) and cancer, along with appetite stimulation. They include cannabidiol, dronabinol; nabilone and tetrahydrocannabinol. That said, the evidence is sketchy at best.