One time my
O/D light started to flash after giving the truck a good work out doing some snow hill climbs. At the time I just assumed the trans overheated. After plugging in the scanner about 2 weeks later there was a code for trans fluid over temp.
But since yours was coming back on the next day, there may be something else wrong.