Maximal acceleration effects for photons in cavity resonators