How long was the DEF in the tank for? It does degrade over time. Based on other posts on this forum, the way it measures the level and quality is some sort of ultrasonic transducer. I wouldn't be surprised that when the level got low maybe it got a false reading that the quality was low.
Either way, if all is good now, you're probably OK.
It's a series of pin sensors. (at least LML was). I'm told that's similar to how the tanks on an RV do it.
6 or 8 years ago there was a bunch of pics posted showing GM's handheld Tech tool displaying the info from the sensors. Each (not very many) would display a 0/1 (so on/off). Then the computer would estimate the level between the sensors.
In any case, it wasn't def level wasn't from a continuously variable gauge like a fuel gauge.
I don't know for sure that they are using the same system on L5P.
As posted I've run my 18 to 'tank empty' message. And on both the LML and L5P almost every time run the level below the 300 mile range before adding any.
Never did this cause a 'DEF poor' message.
The LML I ran did get the 'def poor' and need NOx sensors replaced. It wasn't low when that happened, and it never gave a def quality message again. (ran if for more years after the NOx sensor change than before)
Def poor seems to be an uncommon message now, with the new sensors in the LML's and presumably an updated sensor in the L5P.
But there are many many threads about the def poor message. Few, if any, tested the def and found it was really the problem. When the assumed it was the def and just changed it, the problem would return. Of course, eventually it was determined that really was sensor rather the def (customers) causing the problem. Let to the policy warranty on the def sensors for those early year LML's.