If it says xx miles until max speed of xx mph that is an issue with the DEF system. It’s very common to have a communication issue at the DEF module.
Also once you get that message, it is very hard to get it to go away since the implementation of “permanent” codes