Most contracts allow buyers to walk away after a home inspection when significant problems are found. You should check your contract to ensure it has an inspection contingency and that you are within the timeframe for backing out as listed in the contract.
If these conditions are met, potential buyers can walk away without losing anything. That means earnest deposits can still be refunded, and the buyer has the freedom to choose between negotiating repairs and walking away from a deal.