See my answer in this thread for a method to create seamless loops.
In the video I shared, he explains how to do it in Photoshop, but the same method can be used in Shotcut. And instead of saving as a GIF, save as a mp4, import it again in Shotcut and put as many copies as you need back to back in the timeline to make the loop last as long as you want.