Could be a range of things.

Sensor or something more sinister.

I'd be taking it back pronto.

I'd also be asking for details on the error code/s so that you can do some research online. You might also be able to find someone on these forums to scan the car for you to help you diagnose (there's a thread somewhere)