I've read stories about bad, intermittent, PATS keys. If the chip is broken or bad that can happen. Maybe try a different key. Especially if you give a mechnic a spare key and they can't make it fail but it sometimes fails with the key in your pocket. A bad ignition switch could be the culprit too.