updated – I’ve put A step-by-step video a while ago ‘How to install Office Online server’
You may get this error if you are installing Office Online Server 2016 on Windows 2012 R2 Data center.
There are two ways to fix it, either install the below KB or do the full server update if you are setting up a new server , like in this example.

https://support.microsoft.com/en-us/kb/2999226
Now you are good to go with the installation of OOS 16.