Agreed on Spanish law. I’m pretty sure their legal system still uses the old “guilty until proven innocent” system.
As far as expiring, I imagine that peppers are one of the more lasting spices in the cupboard and are probably good for 30+ years. The spray might lose some potency, but probably not much. If it isn’t pressurized - how does it spray?
Of course if it is actual bear spray and you are worried about humans, I think you'll be okay. The bear spray I've carried is a big can for long distances. Not like the one my wife carries in her purse.