Constraining the X-Ray–Infrared Spectral Index of Second-timescale Flares from SGR 1935+2154 with Palomar Gattini-IR