Thank you for the details of the issue you are experiencing with your MacBook Air display.
I found an article with steps to troubleshoot issues with displays. This article is for internal and external displays, so you can skip any steps referring to an external display. I recommend reviewing the full article, but this step specifically stands out to me for the issue you described:
Reset the system
You can find the full article here:
If the issue persists after following the steps in that article, I recommend following the steps in the following article:
Thank you for posting in the Apple Support Communities.