there are multiple issues in the forum and it’s in the gitlab issue tracker at 3-4 places ( backlog#1772, backlog#2660, backlog#2715 ). The Bug has better debug instrumentation last I looked (intent related), but there’s no final resolve.
As plugging the charging cable cascades another kind of intent through Android photos get synced. So this is a workaround - charge the phone above a certain degree and photos will land, a reboot will do the same.