Using CasparCG Server to play a 2160p50 video Latency warning and screen is stuttering

I’m using CasparCG Server to play a 2160p50 video with the screen consumer, but the screen is stuttering, and in the background, I’m getting the warning message:

[warning] ffmpeg[4K1.mp4] [6.0200/88.0200] Latency: 3

What could be causing this issue, and how can I optimize it?