I solved the problem somehow when I completely removed the graphics driver and installed the oldest one, then I installed the latest without removing the previously installed driver, now the NUC can connect to the TV.
The audio is out of sync, so more adjustment is needed, but at least it works.