Apologies if your Mac experience was underestimated in the initial reply, as we have no way of gauging that.
Seems we need to find the root cause of the issue, which could be any one of multiple reasons.
Eg: Third-party (non-Apple) apps like unnecessary virus-checkers, ad-blockers, cleaners and the like, often cause issues ... even VPN, or out-dated apps etc. that have become incompatible can interfere. Turning them off, or using the uninstallers available from their developers can sometimes restore normality.
In some cases, a thorough check of the system reveals offending apps / files.
If this could be an issue, let us know. There is a recommended app that can help.
______________________________________
Apple support's online articles nicely trouble-shoot various issues:
What to do: If your Mac sleeps or wakes unexpectedly – Apple Support
_____________________________________________________________
Trouble-shooting: If your Mac doesn't start up all the way – Apple Support
or
If your Mac doesn't turn on – Apple Support
______________________________________________________________________
Wondering which Mac model (year) you are using: Identify your MacBook Air model
and
whether there is a particular app that opens on start-up, that isn't responding.
If an app on your Mac stops responding, closes unexpectedly or won’t open – Apple Support
__________________________________
Does the issue persist in Safe Mode ?
Start up your Mac in safe mode - Apple Support
How to use safe mode on your Mac – Apple Support
If the issue doesn't continue while in safe mode,
leave safe mode by restarting your Mac normally.
Then test for the issue again. The issue may have been resolved.
________________________________________________________
Wondering if you have enough memory / storage on your Mac (at least 50 Gb free) for your Operating System to work smoothly.
How to check,
and /or free up storage space on your Mac.
(Back everything up first, if you need to delete items)
Free up storage space on your Mac - Apple Support
__________________________________________________
How to reset the System Management Controller of your Mac
Reset the SMC of your Mac – Apple Support
_____________________________________________________
Another avenue of support, if needed:
MacBook Air - Official Apple Support