I got a SIM card in France, but it worked only for a limited time. I then got one in Spain. I didn’t have any problems. I would get one in Spain, it will be the safer bet.
This site is run by Ivar at in Santiago de Compostela.
This site participates in the Amazon Affiliate program, designed to provide a means for Ivar to earn fees by linking to Amazon