Hi @vishal_nachankar,
Can you please share details on which authentication type you are using to connect to sharepoint using Microsoft O365 package?
I think Delegate access won’t work for you and you might need application access.
Also sharing few thread from similar error, please follow the steps mentioned in these posts:
Regards
Sonali