Hi there, adel_1!
Thanks for reaching out to the Apple Support Communities! It sounds like you're having an issue with your MacBook Air freezing. I recommend taking a look at this article with steps to follow for How to use safe mode on your Mac. This will perform checks and stop certain software from starting up automatically. Once you are in safe mode, test to see if you have the same issue.
Also, check out this article with steps for How to test an issue in another user account on your Mac to create a new user and test the issue in the new account to see if the issue is user specific or system wide.
Let me know the results and have a great day!