score:1
Yes, if you have to collect bags or enter Spain for any other reason, you will need a short-stay (type C) Schengen visa. Baggage collection is after immigration and there is no way around this.
If the airlines could check the bags through to BOS, you would've been able to stay in the departure/transit area without needing a visa, at least according to Timatic.