Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Do you see an entry for Office (or Microsoft 365) in the list of Installed Apps in Windows Settings? In that case, I would try repairing the installation; for instructions, have a look at https://support.microsoft.com/en-us/office/repair-an-office-application-7821d4b6-7c1d-4205-aa0e-a6b40c5bb88b .
If you don't see your Office product or if the repair fails, remove the broken installation manually (see https://support.microsoft.com/en-us/office/manually-uninstall-office-4e2904ea-25c8-4544-99ee-17696bb3027b) and then start fresh with a new install.