I'd just bite the bullet and get proper security cameras. I got a few 4K something or other from Ankke (rebranded HikVision) 5 years ago and they still work fine. They were about €100 each.

For those that don't know, Hikvision is banned in several countries now due to both cybersecurity reasons and human rights violations: https://ipvm.com/reports/hikua-bans

I have also tried many other IP camera brands over the years, but it seems none of them have figured out how to output fully compliant RTP/RTMP/etc. streams so I end up always having strange and random problems receiving fluid streams from them into a central server.

Coupled with the fact that many brands are just using the same recycled white-label Chinese firmware, I'm not surprised.

Would love better recommendations though if any exist.