Samsung A51 screen is always black for a short time when gaming what to do

Al
1

I have a Samsung A51 and while playing Minecraft my screen goes black for about 5 seconds and then comes on again and then again maybe someone knows why and what I could do there?

LG

And thanks in advance

Li

Why do you play something like that on a cell phone? The phone will simply be completely overwhelmed