Proximity breakdown of hydrides in superconducting niobium cavities