Impact of cavities on the detection of quadratically coupled ultralight dark matter | Synapse