Exploring the cosmic censorship conjecture with a Gauss-Bonnet sector