Error-rejecting quantum computing with solid-state spins assisted by low-Q optical microcavities