How to fix video player autoplay stop error

There is a phenomenon where video suddenly stops or a program stops during automatic repetition of the video player. Do you know a solution?