How can I reset or reinstall macOS on my MacBook Air to fix slowness and bugs without losing my apps and files?
Back up with Time Machine, boot into Recovery, erase the disk and reinstall macOS, then restore from the Time Machine backup when prompted. You keep your apps and files and get a clean system. If problems come back, keep at least 15% of the drive free and cut down on login items.