CrockPot food safety

I have a question about food safety in the CrockPot. Since I make it at night and leave it in the CrockPot until early morning when I shut it off and then let it cool for a few hours, is there a concern about bacterial growth? I have never experienced it but wondered.

It is too hot to put into plastic containers in the morning so do I need to cool it faster somehow and get it in the fridge as soon as possible?

I hope I haven't been inadvertently causing my dogs gut health issues by doing this. 😞