Should I be worried!?

Currently 36 weeks pregnant and my husband spilled a cleaning product in the car it smelled like nail polish with hair spray, I don’t know what it was but I had to be in the car for over 2 hours with the smell I do have a headache, could this hurt the baby? It’s smelled really strong, I’m an anxious person