is there any reason this doesn’t simply work with grid blocks out of the box and spacing set in the settings
As the Grid block is to create columns, it controls the space between the columns, but it does NOT control the space between the content inside the columns, in your case, the image blocks.