There should be changes to their release process to test and ensure this won’t happen. Also, I’d like to see a real root cause analysis of some sort.
Unifi is one of the companies with awesome potential but they just seem to whiff it constantly on security and software.
If you just don't even care enough, then you'll never get it right. Not saying that Ubiquiti is that way, but there's a reason why some companies never seem to have significant security concerns and others have an unrelenting stream of them.
Possibly even proxy the traffic via something able to do SSL strip/re-encrypt and monitor that traffic with an IDS.
However speaking to some people at work who have had experience in the past, seems most malware (and that includes IOT devices) doesn't bother validating certificates or things like ESNI and (validated) DOH, so there's a lot you can find out without breaking TLS, due to the lazineess/incompetence of the malware writers.