Yep, had the same problem even after I hard reset. I thought it was duplicating them on Onedrive, but it wasn't when I checked through the app. So, its definitely a bug in the photos app. I couldn't figure out a patter either as like you said, it wasn't all of them.