Nicole Coggins, who lives in Liberty, SC, thought it was a Christmas miracle when she bought a winning $500 “Holiday Cash” insta-pay ticket.

Then she bought three more — all winners.

“I thought maybe there’s something wrong with the machine. This can’t be real,’’ she told Greenville TV station WYFF.

It wasn’t real.

When she tried to cash the “winners,” she was told they were invalid.

A programming glitch had created too many winning “add a play” tickets for two hours on Christmas Day.

If the state decides to honor the tickets, it will have to play Santa Claus to the tune of some $19.6 million.

This article originally appeared on the New York Post.