Rigid foam board expansion
You should be safe to leave a gap of ~3/16", based on the coefficient of thermal expansion in the table here (https://insulationcorp.com/wp-content/uploads/2016/08/ICA-LITE_Spec_Sheet.pdf). With a value of 35x10e-6in/in per deg F, assuming a 100deg maximum temperature delta x 48" wide piece-> 0.000035*100*48=0.168". This would assume 100deg from your install temperature I believe... so 1/8" may be more appropriate @30deg (F).

You should look-up and find your particular mfr/model spec sheet to find a similar table for the product you plan to install, and perform the calculation for it.