This is probably a cornerstone bug. When you edit a page in cornerstone, sometime the Envira Gallery will switch which gallery is selected without any user action. It usually switches to what ever the last gallery created was.
I’ve noticed this behavior many times, but it’s not always consistent.