I think Hyundai simply suggests 5W40 because it is a well recognized grade, easy for people to find, and is far more popular than the 0W40 options. They likely do not exhaust the possibilities of grades to keep it simple for owners and not leave them with an overwhelming amount of choice.
However, from a technical standpoint, assuming a 0W40 oil is of high quality and resistant to shear, then no, there will be no issue with using it in place of a 5W40. M1 0W40 is approved alongside many 5W40's in many different applications. In theory, a synthetic 5W40 or 10W40 might be more shear resistant than a 0W40, but in practise, the difference (if any) likely does not even come into play, especially for a daily driver.
However, from a technical standpoint, assuming a 0W40 oil is of high quality and resistant to shear, then no, there will be no issue with using it in place of a 5W40. M1 0W40 is approved alongside many 5W40's in many different applications. In theory, a synthetic 5W40 or 10W40 might be more shear resistant than a 0W40, but in practise, the difference (if any) likely does not even come into play, especially for a daily driver.