Hi
Looks like a permission issue to me, however check this thread with similar issue and fix provided by MSFT.
Detailed process on the API - profilephoto-update
unable-to-make-api-call-to-azure-registered-app-wi.html
Hope this helps.
JS
==
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.