This exact thing started happening to me two weeks ago. I have the new macbook air 15 inch and its only been like two months since having it. I had a whole conversation with apple support and they suggested i update my computer (to sonoma) and it would most likely fix it. It worked for about a day! And then it started again but now its in other random spots and comes and goes, and my track pad is useless. Its getting pretty annoying.