Thanks for reaching out to Microsoft!
401 error often means that the access token may be missing in the HTTP authenticate request header or that the token is invalid or is expired.
As per the documentation: When you create your subscription, an access token is sent to your endpoint. This access token is used only to check the validity of your endpoint and has a lifecycle different from your change notification subscription. This access token generally expires within 1 hour.
We recommend that you add lifecycle notifications to your subscription to receive a warning about token expiration so you can reauthorize your endpoint in a timely manner.
When you renew your subscription, your access token is also refreshed.
Hope this helps!
If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.