A festival committee in northern Spain accidentally sold more shares in official tickets with the winning number than it had previously purchased itself.