The image title that you enter in the gallery is used inside the strong tag.
to prevent this issue with the validation, make sure to add an image title in the gallery admin.
The name attribute is used by the lightbox components to display the image title and description and cannot be replaced.