Periodically, midi track is not recorded through MG2

Hello! Maybe someone faced such a problem? During the recording of MG2, for some reason, the recording of the midi track periodically disappears, and the audio track always sounds normal. On the midi track, notes are not reflected periodically and are not recorded on the piano roll. I tried to change the audio interface, reinstalled Jam Origin, reinstalled the Reaper. Nothing helps, at first the midi track writes normally, and then the notes on the piano role disappear again and are not recorded.
Has anyone encountered a similar problem?

Is your licence valid and displayed with your name as shown in this screenshot?

snap

Yes, the license is valid, it is displayed as shown in the screenshot