Same thing happen to my 98X, first tried disconecting battery about 30 min. flash was gone for about six weeks, 4WD lights came flashing , this time i took it in to shop, it turn out to be the sensors on the transfer case, had both sensors replaced.
Two years now with no problems.
Hope this...