An exceptional Siegel–Weil formula and poles of the Spin L-function of $\text{PGSp}_{6}$