Infinite-dimensional R-matrices for the relativistic scattering of massless modes on $\boldsymbol{\mathrm{AdS}_2}$