Have you rooted your device?
Have you covered the proximity sensor accidentally when you encounter this problem?
Could you help me to turn off the adaptive brightness for a check?
Please also check this matter under safe mode. In safe mode, only the factory pre-installed applications will be loaded.
For instructions, please refer to the link below: