@Rishabha Dwivedi
Thanks for posting your query on Microsoft Q&A.
You can resolve this by encoding your file name using a standard URL encoding function like urllib.parse.quote()
Reference documentation: https://docs.python.org/3/library/urllib.parse.html#url-quoting
Please try the above and let me know the results in the comments. Thanks.