Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
It looks like the Office 2019 license information is still cached on your PC, so Office may be showing the older product even though Office 2024 is installed.
Please completely remove the existing Office installation first by using Microsoft's uninstall tool: https://aka.ms/SaRA-OfficeUninstallFromPC
After the removal is complete, restart the PC and sign in with the Microsoft account that redeemed the Office 2024 product key. Then reinstall Office from: https://account.microsoft.com/services
Also check that the Office 2024 key was redeemed under the correct Microsoft account. A product key that was already used for Office 2019 cannot upgrade or convert the license to Office 2024.
If the error 0-2039 (0) appears again during repair, the clean uninstall and reinstall usually fixes the corrupted Office configuration.