It's possible there are some
event messages causing this.
Double click in the
midi track.
Click on View, then select Mode:Event list.
You might see some parameters before the notes (see picture below). If so, deleting these might stop things from reseting.
Pete