Use NSF listed panels, don't throw away your money using foam not especified for food purpose. There no way to control a 4" foam and the density needed for that application.
With time it's going to be saturated with water and u are going to have problems like moisture and fungus in your walls...