HSM does not support TLSv1.3. If the HSM certificate is used in VS, the TLSv1.3 handshake will fail.
Workaround: Please uncheck the TLSv1.3 in the SSL profile if you are using the HSM certificate to avoid potential handshake failure.