Garmin specifies 6" separation between GPS antennas in the G3X manual. I've seen many that are like @airguy with no issues.
Page 23-5 rev AM.
To minimize the effects of shadowing at 5° elevation angles, the GPS antenna should be mounted
no closer than 6 inches (edge to edge) from other...