I am using a Windows Server 2016 and get the error message:
"The stream end was reached before the processing was completed"

What can I do to prevent this error message from occurring again?

This is due to the Windows Update KB4507460 and/or KB4507459.

To fix this behavior you must un-check the following option:
Internet Explorer > Internet Options > Advanced > "Disable script debugging (others)"

ATTENTION: If users should not or cannot do this themselves, please roll this out via a group policy, for example.