
Hi @fredj-6392 ,
Per my test, I will get the same error register app with Service Principal and it fixed with the app registered in AppRegNew .aspx.
After research some document. I will recommend to create it through AppRegNew .aspx like following document
https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/register-sharepoint-add-ins
If the answer is helpful, please click "Accept 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.