I dont know a whole lot about this period but I am aware that this is just after the Portuguese Spanish union failed in 1640 and kicked off the restoration war and that further fracturing of spain may have been possible.
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
Andalusia would likly need a sponsor to secede successfuly and during this time the Ottomans, English or French seem like the best candidates (the later having supported Nepalese and catolonian rebelions in land of the former crown of aragon that Spain held in a attempt to rupture Spanish control of these tarritorys.[the later rebelion was a significant benchmark for the catolinian people and served as the basis for thier national anthum])
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
This was also the time period of the 80 years war with the dutch revolts and the 30 years war so regional minor powers to consider, are the Dutch, Portuguese, italian minors (piedmontese cival war)
and possibly the saadi Moroccan Sultanate who was in a anti spanish alliance with England if the Anglo Spanish war kicks off around a decade earlier allowing English and Moroccan intrests to intersect with supporting the Andalusians. (The English where considered on the French side of the otl Franco Spanish war)
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
en.m.wikipedia.org
The ottomans where vary much still considered a great power at this time and arguably near the hight of thier power with the battle of Vienna being only a few decades away but I would say im the case of the ottomans thier support would likly come as a result of the Franco ottoman alliance, possibly joining in on the Franco Spanish war or advantageously assisting England and Morocco if they are at war with spain as opposed to a independent operation and at least enough coperation from Morocco to allow troop movement through thier tarritory.
en.m.wikipedia.org
en.m.wikipedia.org
Assuming a Spanish screw in this period with these 3 powers finding commen intrest agenst spain and a better performance out of participants this looks like a prime period to shatter Spanish power if they lose control of not just Andalusia but also Catalonia and thier other europian possessions in Italy and the neatherlands.