The sooner you bring this to the dealership attention and make your demands, the better.
IANAL, but I would probably send a registered letter (or even better, hand deliver with a witness) to the dealership GM with a demand for immediate reversal of sale. If they want to try and negotiate a compromise, let them make an offer you can refuse if you do not like it. The key point here is that any delay in reaching a solution is on their clock and by extension your use of the car in the meantime is not on your dime.
2013 Model 'S' with QC & rear-view camera
Bought off-lease Jan 2017 from N. California
Car is now enjoying an easy life in Colorado
3/2018: 58 Ahr, 28k miles