A primary school in Oxfordshire has been hit with an unplanned closure.