An Office service that supports add-ins to interact with objects in Office client applications.
To my knowledge, there may be other two possible causes of this issue.
Please refer to this link and check point 3 (Azure Security Defaults) and point 4 (Conditional Access policy): Error: Authentication unsuccessful
These settings would block Legacy Authentication.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.