Processes in Microsoft 365 for setting up Office apps, redeeming product keys, and activating licenses.
Hm I think this has happened to me.
Generally I found it best to restart and then do the online repair immediately. (Could be slow still)
I assume there is some process hanging around otherwise. (Generally I had already tried to open an Office product, got the error and gone for the repair.)
Your milage may vary!