Would a Louis XIV-Maria Teresa match go through? Mean, OTL Felipe had sons in the 1650s so he was kinda "sure" (even if they died like flies) there'd be no French inheritance. Here, he'd likely have Maria Teresa sworn in as Princess de Los Asturias as soon as her brother dies, no?
OTL Felipe had sons in the 1650s, though even then it was a bit touch and go. At the start of the decade, his original heir, Baltasar Charles was already four years in the grave, and by the end, his spare died young and his second heir (Felipe Prospero) was suffering from a severe case of epilepsy (he died in 1661).
With that said, assuming Queen Isabella de Borbon did not die from childbirth in 1644 (it was a stillborn son by the way so the son would technically be Prince of Asturias), then assuming the surviving children still ends up dying as they did IOTL, then Maria Teresa becomes heir. Which of course for the sake of keeping Spain under Habsburg rule, means that she's marrying a Habsburg. Maybe just so that France and England poo themselves, she marries the future Leopold I as her OTL younger half-sister did.