Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
I take it you're using classic Outlook. If this were happening to me, I'd start with a clean profile. However, keep in mind that if you're using an IMAP account to access your Yahoo mailbox, you'll have folders labeled "This computer only" and if you create a new profile and re-add the Yahoo account, the new folders you'll get will have mail but the "This computer only" folders will probably be empty because they'll be new. You should save the "This computer only" folders to a PST prior to making any changes.
See this article for a description of profiles. There is a "Create a new profile" section in it. https://support.microsoft.com/office/9073a8ac-c3d6-421d-b5b9-fcedff7642fc