If you choose to add Links to Image Blocks or Gallery Blocks, you can remove them by adding the following CSS to Appearance > Customize > Additional CSS
/* Remove link border on images */
.wp-block-gallery a,
.wp-block-image a,
.wp-block-latest-posts__featured-image a {
border-bottom: none;
}