Cubase 9.5.41 - Recording and Rendering is OUT OF SYNC

Hi and welcome,

How much early is it? In this case, there could be one more issue involved: an USB > MIDI jitter. Again, I cannot recommend more, then read something about the MIDI Jitter. And this Solving MIDI Timing Problems on Windows article is also interesting.