Does foam insulation cause any electrical wiring overheat or any problems to metal surfaces?

No, foam insulation has been thoroughly tested and is not a concern to electrical authorities nor is it corrosive to any metals whatsoever.