The mouse is not moving on its own.I had a quick search and found an article that should eliminate the problem you're facing. If none of the suggested actions in the article fixes the problem, I suggest going to a physical Apple store.
Hope this helps: https://macpaw.com/how-to/mac-cursor-moving-on-its-own