Hi @Steve ,Based on your description, this is very strange. I suggest you try the steps in this article:https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azureacs to see if the problem can be solved.
If the problem persists, you can try the methods in this article:
https://learn.microsoft.com/en-us/sharepoint/dev/solution-guidance/security-apponly-azuread
Have a nice day!
If the answer is helpful, please click "Accept as Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.