If your device shuts off whenever a video plays, it usually points to a fixable cause rather than something unexplainable.
Common culprits include overheating, a low or failing battery, insufficient memory, or a faulty video file or app. Try charging fully, freeing up storage, updating your software, and testing a different video. If it keeps happening, the hardware may need a professional look.