Hi Abdullah,
Thank you for the screenshot.
I think you are getting that error because it is currently in the OneDrive folder in your User folder.
1
Open the D drive in File Explorer
If there is no Pictures folder in this folder, create it:
D:\Users\mabdu
So now, you have this folder, is that correct?
D:\Users\mabdu\Pictures
Close File Explorer.
2
Open the Registry Editor again, it will still be on the same page.
3
Double click My Pictures, set its Value Data to this and click OK
D:\Users\mabdu\Pictures
4
Double click {0DDD015D-B06C-45D5-8C4C-F59713854639}, set its Value Data to this and click OK
D:\Users\mabdu\Pictures
5
Close the Registry Editor, then restart (not shut down) your PC to apply that setting.
To tidy up, you need to move your image files from C:\Users\mabdu\OneDrive\Pictures over to D:\Users\mabdu\Pictures