Would bumping the $TLSTimeSlice DST68 fix this?
From Help Topic DMD0208 System Assigned Nicknames
DST68 The amount of time (in microseconds) the TLS engine is allowed to run on each scan for each device trying to establish an encrypted connection to a server. TLS is used by SMTP (Email), and MQTT client devices, and the HTTPCMD instruction.
It will bump your PLC scan, but that will give the CPU more time on each scan to do some of the TLS logic.