If the video is corrupt in some way, that could also be a problem. Does this only happen with a particular episode? Or particular series? All from the same source?
Jellyfin 10.10.7 (Docker)
Ubuntu 24.04.2 LTS w/HWE
Intel i3 12100
Intel Arc A380
OS drive - SK Hynix P41 1TB
Storage
4x WD Red Pro 6TB CMR in RAIDZ1