Here are all important links:
http://lmms.io/forum/viewtopic.php?f=1&t=4740
-A few rules and useful forum instructions
I am next to sure that your piano-roll with the notes either:
1 Has one tiny forgotten leftover-note in 5. bars first beat
Ao.
2 Your notes are not fitting 100%, and they must! -or rater, they cant be even a 1/192 too long!
What you do is to
* open your piano-roll
* Set Q value to 1/192
* set magnification to ~400%
* scrol the notes to the end-point
I expect that you will find one or several notes that are just a fraction too long, shorten them, and your problem is gone -Unless the problem is '1', but then remove the leftover note :)