You need to be careful when trying to start, which then causes the headlights to flash. It is possible that the communication between your key transponder and car can become scrambled and you'll have to use a different key to start it!
I had a similar problem and turned out the be an iffy battery. New battery, problem solved.