As reported on the German-language Wikipedia's feedback page, editing a gallery which has <br /> linebreaks within the image captions destroys the gallery.
An example of how to reproduce the problem is given here.
Enforcing line-breaks within the captions using <br /> might not be allowed within gallery captions, but it works well and is therefore used by editors. Even if VE does not support adding linebreaks, it should not destroy already existing galleries when users edit the page.