This message was posted on behalf of Intel Corporation
In regard to your concern, at the following link, you will be able to see the list of supported OS for your Intel® NUC Kit NUC5i7RYH:
Supported Operating Systems for Intel® NUC Products
There you can confirm that our customers have reported as tested; Debian, Fedora and Ubuntu.
Please try with those versions in order to see if the issue persists. If the issue persists with the 3 of them, could you please try with any of the version of Windows listed on the link.
If the issue persists with all the OS or if you see any good results, please let me know.
Please let me know how it goes in order to further assist you if required.