What To Do When HR Gave A Wrong Salary?

Solutio indebiti. If something is received when there is no right to demand it, and unduly delivered through mistake, the obligation to return it arises.