don’t think your relay is operated by GPIO0 in the way that you think it is.
I’d suggest you read this topic, and the others that it links to…
Pete.