Hello Hari Krishna
Welcome to the MS Q&A platform.
Synapse notebooks use Azure Active Directory (Azure AD) pass-through to access the ADLS Gen2 accounts. If you are running the notebook directly on the synapse, your account needs Storage Blob Data Contributor to access the ADLS Gen2 account (or folder).
If you are running the notebook via the pipeline, the synapse workspace managed service identity needs Storage Blob Data Contributor to access the ADLS Gen2 account (or folder).
For your other question, the error message seems like there was an authentication failure when trying to access a resource.
Please check if you provided the storage blob data contributor access
Follow the above tech community article and run the code using the service principle.
You can use either managed identity or the service principal
Please try and let me know if you still have any issues further.