I would try and get more information as to what the foam board is made of. Yep, it could give off toxic fumes with heat. I personally don't think I would try it. but at least see if you can get more information from the manufacturer as to what it is made off. Often foam things are made of chemicals that react with each other creating the foam and will put off toxic fumes when heated.