I had this issue, ended up being because of my SD card having a read error and was prompting to format it.
Ended up copying everything to my internal storage. Removing the card and then eventually Google photos synced everything. Only annoying thing is all my photos have some how lost meta data...