I’m making chicken enchiladas to freeze for the first time. The recipe has the chicken cooking in the instant pot, so it’s hot when I’m putting it into the tortillas.

Do I need to let it cool completely before putting the tray in the freezer? Or can I fill them and just put the trays in the freezer immediately?