the upper 2 commits are the problem
i tried doing what was answered on this similar question i tried using chatGPT and doing commands like
git fetch --all
git reset --hard origin/main
and
git reflog expire --expire=now --all
git gc --aggressive --prune=now
but nothing works
is there and actual solution or do i have to reclone the repo?

mainon top oforigin/main? The hard reset should work.... You were probably standing on a different place from localmain. Try a checkout before running the hard reset