Hi, I also had this problem, and It was very annoying, but I fixed it!
You have to make sure that your gallery isn't syncing to one drive directly.
Even if you turn off the "Camera upload" setting in OneDrive it won't stop unless you also turn off syncing in your gallery settings.
This image is an example of what the setting might look like. (It's an image from Samsung gallery settings)