Is it possible to re-open a withdrawn article on arXiv?
It might be best to upload a new version that's essentially a note explaining that there's a flaw in the original. Then when you patch the proof (if you patch the proof) you can post the latest version.
Since the flawed original will be there in any case, this keeps all the corrections in one place.