Sub-cycle switching of ultrastrong light-matter interaction in a 1D photonic bandstructure