SNG7 OpenSSL Error

This error has nothing to do with Nginx. It is your Apache config sending bad data.

Something in the FreePBX 14 openssl config is different than it was in FreePBX 13.
Even without Nginx in the middle, Yealink T42G and T46G (basically all the G series models) cannot get provisioning over HTTPS.