You cannot access OneDrive with a file path that way.
You have two choices:
Use the OneDriveSDK
Figure out how to create a direct link to your file. There is an answer here with a link to more details. In short, you’ll need to use a path which looks something like: