@Satya Naik Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
These samples use the latest Azure Storage JavaScript v12 library. For legacy v11 code, see Getting Started with Azure Blob Service in Node.js in the GitHub repository. Azure Storage samples using v12 JavaScript client libraries
Requested you to verify and confirm if the blob has the right IAM roles with required permissions (Owner or Contributor).
If the issue still persist, to troubleshoot the issue further we need the request id and time. Since the issue isn't consistency I would recommend you to contact support, so If you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support. In this case, could you send an email to AzCommunity[at]Microsoft[dot]com referencing this thread as well as your subscription ID. Please mention "ATTN subm" in the subject field. Thank you for your cooperation on this matter and look forward to your reply.
Additional information : Based on the error message additional work arounds mentioned here:
https://stackoverflow.com/questions/24492790/azurestorage-blob-server-failed-to-authenticate-the-request-make-sure-the-value
This is a rather common error that can have many causes. You will find many threads on StackOverflow where users experience this issue.
Please let us know if you have any further queries. I’m happy to assist you further.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.