Please see https://github.com/zenphoto/zenphoto/issues/271 There is a test branch and some research questions you could help with.
The current theory is that this is caused by a database condition that leaves multiple versions of the release option, which is not supposed to be possible.