Add up each camera's maximum watts from the datasheet (IR on, heater on), keep a margin, and the total must be below the switch's "PoE budget". Choose the switch by watts, not by port count.
๐ง Applies to: All PoE switches. Take each camera's watts from its datasheet.
A PoE switch has a total power "budget", like a home's sanctioned load. It may have 16 ports but only a 130 W budget. If the cameras together ask for more, some ports shut off, often at night when IR turns on.
All cameras run at night without restarting and the switch has budget left.
Compare the real usage on the switch web page's PoE status / power usage.
What went wrong?
Still stuck? Ask the community.
This answer is for learning and field guidance. Menus and limits differ by brand / model: check the device's official manual before final work.