The TLS topic is a bit complicated, due to changes in the openssl library coming from upstream in newer operating system versions. So generally speaking, the newer Kamailio versions are better adapted in that regards. But if the issue happened only once in some month, it might be also just a random (virtual) hardware issue not related to an issue in Kamailio.