Mid 2017 Airs can run the latest macOS, Big Sur.
You can try simply updating with this How to upgrade to macOS Big Sur - Apple Support
If it doesn't work, I'd advise you to make a clean install of macOS.
First backup your personal data to an external USB drive.
Now create a bootable USB installer following this How to create a bootable installer for macOS - Apple Support
Restart holding Option and choose the USB installer
Once Recovery Mode is loaded, open Disk Utility and completely erase the internal drive
Close DU and proceed installation.
That I consider the best way because you'll have a clean install, free from debris from old versions like system files and settings that could cause you some trouble.