What is the vehicle doing when the lights flash? Will it drive normal or not.
I would drain the T-case fluids and look for signs of T-case failure. Dark burnt fluids, metal shavings, copper metal or white plastic particles, in the fluids will be clues to whats going on inside.
Let us know what you find.