Just a guess.
You use a COM/USB cable to connect and there is a driver. And you change from Windows Server 2012 to 2019. Is there anything related to your driver settings?
You can check COM driver settings by Device Manager - Ports - Properties - Port Settings.