Weak cosmic censorship with SU(2) gauge field and bound on charge-to-mass ratio