Hey mate, I’d suggest that the proximity sensor is working as expected if it dimming your screen while you’re gaming.
There’s some settings you can configure like screen attention (in display > screen timeout) that might ease the problem but you should try not to cover the proximity sensor. This isn’t unique to Nothing.