Hello Ilhem Chelly
What is your version of Windows Server 2019?
You might see this error if you entered a product key for a different version or edition of Windows Server.
Enter a product key that matches the version and edition of Windows installed on your device or buy a new copy of Windows from the Microsoft Store.
Reference from: Get help with Windows activation errors - Microsoft Support
Best Regards,
Hania Lian