I’ve only had a quick look at your script, but I suspect the reason is something to do with this thread:
All of the HOYs you’re reporting are in the morning, so maybe something like the sun is below the horizon at 7am, but then the epw records radiation for the period 7-8am…?