Hello !
Firstly, uninstall Office for Mac by following this tutorial, and then, this one. Once done, reboot your Mac : Microsoft Office will be completely uninstalled from your Mac. Also, use the Office license removal tool, which is available here : https://support.microsoft.com/en-us/office/how-to-remove-office-license-files-on-a-mac-b032c0f6-a431-4dad-83a9-6b727c03b193
Secondly, once everything has been correctly uninstalled, try to reinstall Office directly from your Microsoft account dashboard : https://account.microsoft.com/services Scroll to the bottom of the page : you should see an "Install" button next to your Office 2024 license.
Do not use the Mac App Store version : they're not compatible ! Download the .pkg, and install it. Launch any Office app, and log into your Microsoft Account.
You should be good to go !
Please let me know if you have any other question !