I just backed out my agreement and I got my earnest money back. If you
have the inspection contingency (I don't think you waived it) and it is
still in the time limit, just back out. You can also do it with financial
continency (such as difficulies to get loans).