Window manufacturers no longer recommend using that stuff for installing windows in homes because the expansion would actually warp the window frames and make them hard to open and close. It was used between studs and the frames and would normally be covered by trim later. If it can bend a window frame it can certainly cause a problems for a headliner.