Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
What does the error message say?
Did you uninstall the preinstalled trial before you installed the version you purchased? Doing this isn't always required, but it is worth trying when something goes wrong.